diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2014-02-06 19:48:34 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2014-02-06 19:48:34 +0000 |
commit | bb9e7de8b13c327e8ae604067a9df99bdaa08a2a (patch) | |
tree | 14bb4c72ba67ce2b43407d9543c97519c4c49be4 /testing/libgusb | |
parent | a63ee24a0476b162f791959382500fadd0e57735 (diff) | |
download | aports-bb9e7de8b13c327e8ae604067a9df99bdaa08a2a.tar.bz2 aports-bb9e7de8b13c327e8ae604067a9df99bdaa08a2a.tar.xz |
testing/libgusb: new aport
Diffstat (limited to 'testing/libgusb')
-rw-r--r-- | testing/libgusb/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/libgusb/APKBUILD b/testing/libgusb/APKBUILD new file mode 100644 index 0000000000..efb5347f2c --- /dev/null +++ b/testing/libgusb/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=libgusb +pkgver=0.1.6 +pkgrel=0 +pkgdesc="GLib wrapper around libusb" +url="https://gitorious.org/gusb/" +arch="all" +license="LGPL" +depends="" +depends_dev="udev-dev libusbx-dev glib-dev gobject-introspection-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://people.freedesktop.org/~hughsient/releases/libgusb-$pkgver.tar.xz" + +_builddir="$srcdir"/libgusb-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="672058e7a49a38259ab6ea01470c2fa2 libgusb-0.1.6.tar.xz" +sha256sums="900103ff24a851ef8395b992236ced0aedb4c265ef2264f6ad8349300095198b libgusb-0.1.6.tar.xz" +sha512sums="3e5da2d4683ec787dae5282ba750b23d7b79e8dde60a98c4f7d6ca26892b365733c090d475ec385a8adc8a49ecad0914fbcd02713bbe2fdf353f87c0c7aa9938 libgusb-0.1.6.tar.xz" |