aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-12-29 05:37:37 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-12-29 05:37:46 -0300
commita399a0f8a4c1e3f7e2cf33f95855e308f28c7ced (patch)
tree88236b7fbfd36760cb282dbd4f689ce7c3325565
parente6d563766e14c8e99f060220fa6026a1f6f75135 (diff)
downloadaports-a399a0f8a4c1e3f7e2cf33f95855e308f28c7ced.tar.gz
aports-a399a0f8a4c1e3f7e2cf33f95855e308f28c7ced.tar.bz2
aports-a399a0f8a4c1e3f7e2cf33f95855e308f28c7ced.tar.xz
community/usbip-utils: modernize
- Add -openrc subpackage - move `autogen` to `prepare()` - fix license to use SPDX identifier
-rw-r--r--community/usbip-utils/APKBUILD15
1 files changed, 11 insertions, 4 deletions
diff --git a/community/usbip-utils/APKBUILD b/community/usbip-utils/APKBUILD
index e7417680fd..14d2f763c8 100644
--- a/community/usbip-utils/APKBUILD
+++ b/community/usbip-utils/APKBUILD
@@ -6,11 +6,11 @@ pkgrel=0
pkgdesc="Utilities for USB device sharing over IP network"
url="https://www.kernel.org/doc/readme/tools-usb-usbip-README"
arch="all"
-license="GPL-2.0"
+license="GPL-2.0-only"
depends="glib sysfsutils usbutils"
depends_dev="gcc automake autoconf eudev-dev libtool linux-headers sysfsutils-dev glib-dev"
makedepends="$depends_dev tar"
-subpackages="$pkgname-dev $pkgname-doc"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc"
source="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-$pkgver.tar.gz
usbip.initd
usbip.confd
@@ -26,11 +26,18 @@ unpack() {
tar -C $builddir --strip-components=4 -zxv -f $srcdir/linux-$pkgver.tar.gz $_baseurl
}
+prepare() {
+ default_prepare
+ /bin/sh autogen.sh
+}
+
build() {
export CFLAGS=$(echo $CFLAGS | sed 's|-Os|-O2|')
export CPPFLAGS="$CPPFLAGS $CFLAGS"
- /bin/sh autogen.sh
- ./configure --prefix=/usr \
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \