aboutsummaryrefslogtreecommitdiffstats
path: root/testing/usbip-utils/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-05-29 20:37:28 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-06-13 11:27:03 +0000
commiteb41a52cf497cf741901ae6b1bb3e6d8d4f72c4b (patch)
tree446fe53df2dd74b840b87c223aec8689ef8145ef /testing/usbip-utils/APKBUILD
parent4795dcce6bcfc87c860540ee3f7150291b7d71d8 (diff)
downloadaports-eb41a52cf497cf741901ae6b1bb3e6d8d4f72c4b.tar.bz2
aports-eb41a52cf497cf741901ae6b1bb3e6d8d4f72c4b.tar.xz
testing/usbip-utils: renamed from usbip, now is kernel tree
Diffstat (limited to 'testing/usbip-utils/APKBUILD')
-rw-r--r--testing/usbip-utils/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/usbip-utils/APKBUILD b/testing/usbip-utils/APKBUILD
new file mode 100644
index 0000000000..f1e4738600
--- /dev/null
+++ b/testing/usbip-utils/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=usbip-utils
+_pkgname=linux-stable
+pkgver=1.1.1
+_pkgver=ca89df9
+pkgrel=1
+pkgdesc="usbip for linux-stable from kernel.org"
+url="http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary"
+arch="all"
+license="GPL"
+depends=""
+depends_dev="sysfsutils-dev automake autoconf libtool glib-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev"
+source="saveas-http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=snapshot;h=ca89df931f296e469ed748da0a91c0af43e108d2;sf=tgz/usbip.tgz
+ strnlen-uclibc.patch"
+_builddir="$srcdir"/$_pkgname-$_pkgver
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 src/utils.c < "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./autogen.sh || return 1
+ ./configure --prefix=/usr
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="152d41fbc8b1fc8a9e2cc2e873892d38 usbip.tgz
+ddf740926a40d34d1808bb55587b35e1 strnlen-uclibc.patch"