mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 15:04:36 +08:00
38 lines
1.0 KiB
Bash
38 lines
1.0 KiB
Bash
pkgname=libimobiledevice
|
|
pkgver=1.2.0
|
|
pkgrel=2
|
|
pkgdesc="Is a software library that talks the protocols to support iPhone and iPod Touch devices on Linux"
|
|
url="http://libimobiledevice.org/"
|
|
arch=('x86_64')
|
|
license=('GPL2' 'LGPL2.1')
|
|
depends=('gnutls' 'libusbmuxd' 'libgcrypt')
|
|
makedepends=('python2-cython')
|
|
optdepends=('python2-cython: Python binding support')
|
|
source=("http://libimobiledevice.org/downloads/${pkgname}-${pkgver}.tar.bz2"
|
|
"disable-sslv3.patch"
|
|
'CVE-2016-5104.patch')
|
|
md5sums=('8757900ba7bbe2ef5f54342415d0223e'
|
|
'bac123da4cc67b2f5cc798727e6231a9'
|
|
'e3535be4b4082486804b033d3f165193')
|
|
|
|
prepare() {
|
|
cd "$pkgname-$pkgver"
|
|
patch -Np1 -i ../disable-sslv3.patch
|
|
|
|
# CVE-2016-5104, should be upstreamed in pkgver>1.2.0
|
|
patch -Np1 -i ../CVE-2016-5104.patch
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
PYTHON=/usr/bin/python2 cython_python_bindings=yes ./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|