Commit a399a0f8 authored by Leo's avatar Leo
Browse files

community/usbip-utils: modernize

- Add -openrc subpackage
- move `autogen` to `prepare()`
- fix license to use SPDX identifier
parent e6d56376
......@@ -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 \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment