diff options
Diffstat (limited to 'testing/usbmuxd/PKGBUILD')
-rw-r--r-- | testing/usbmuxd/PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/usbmuxd/PKGBUILD b/testing/usbmuxd/PKGBUILD new file mode 100644 index 000000000..b0f74f8e2 --- /dev/null +++ b/testing/usbmuxd/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 158000 2012-04-30 22:27:24Z tomegun $ +# Maintainer : Ionut Biru <ibiru@archlinux.org> +# Contributor: Gabriel Martinez < reitaka at gmail dot com > + +pkgname=usbmuxd +pkgver=1.0.7 +pkgrel=3 +pkgdesc="USB Multiplex Daemon" +url="http://marcansoft.com/blog/iphonelinux/usbmuxd/" +arch=('i686' 'x86_64') +license=('GPL2' 'GPL3' 'LGPL2.1') +depends=('libusb>=1.0.8') +makedepends=('cmake') +install=usbmuxd.install +source=(http://marcansoft.com/uploads/${pkgname}/${pkgname}-${pkgver}.tar.bz2 + usbmuxd-udevuser.patch) +md5sums=('6f431541f3177fa06aa6df9ceecb2da0' + '8526f24f4ad16cd6b2a7321c0b59592c') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i "${srcdir}/usbmuxd-udevuser.patch" + mkdir build + cd build + cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr -DLIB_SUFFIX="" + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}/build" + make DESTDIR="${pkgdir}" install + + # fix udev dir being hardcoded + mv "${pkgdir}/lib/udev" "${pkgdir}/usr/lib/" + rmdir "${pkgdir}/lib" +} |