core/libimobiledevice/PKGBUILD

52 lines
1.3 KiB
Bash
Raw Normal View History

2010-09-08 05:46:28 +08:00
pkgname=libimobiledevice
2018-04-21 10:24:06 +08:00
pkgver=1.2.0+66+g5a85432
pkgrel=1
2017-05-31 12:34:24 +08:00
pkgdesc="Library that talks the protocols to support iPhone and iPod Touch devices on Linux"
2010-09-08 05:46:28 +08:00
url="http://libimobiledevice.org/"
2012-11-23 05:27:49 +08:00
arch=('x86_64')
2010-09-08 05:46:28 +08:00
license=('GPL2' 'LGPL2.1')
2017-05-31 12:34:24 +08:00
depends=('libusbmuxd' 'usbmuxd' 'gnutls')
2018-04-21 10:24:06 +08:00
makedepends=('python2' 'cython2' 'python3' 'cython3' 'libplist' 'autoconf-archive' git python2-setuptools python3-setuptools)
_commit=5a85432719fb3d18027d528f87d2a44b76fd3e12 # master
source=("git+https://github.com/libimobiledevice/libimobiledevice/#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/-/+/g'
}
check() {
cd build-py2
make check
}
2016-05-11 14:50:46 +08:00
prepare() {
2018-04-21 10:24:06 +08:00
cd $pkgname
NOCONFIGURE=1 ./autogen.sh
2016-05-11 14:50:46 +08:00
}
2010-09-08 05:46:28 +08:00
build() {
2017-05-31 12:34:24 +08:00
mkdir build-py2
pushd build-py2
2018-04-21 10:24:06 +08:00
PYTHON=/usr/bin/python2 CYTHON=/usr/bin/cython2 ../$pkgname/configure --prefix=/usr --disable-openssl
2017-05-31 12:34:24 +08:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
popd
2017-05-31 12:34:24 +08:00
mkdir build-py3
pushd build-py3
2018-04-21 10:24:06 +08:00
PYTHON=/usr/bin/python3 CYTHON=/usr/bin/cython3 ../$pkgname/configure --prefix=/usr --disable-openssl
2017-05-31 12:34:24 +08:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2010-09-08 05:46:28 +08:00
make
}
package() {
2017-05-31 12:34:24 +08:00
pushd build-py2
make DESTDIR="$pkgdir" install
popd
pushd build-py3/cython
make DESTDIR="$pkgdir" install
popd
2010-09-08 05:46:28 +08:00
}