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 ...@@ -6,11 +6,11 @@ pkgrel=0
pkgdesc="Utilities for USB device sharing over IP network" pkgdesc="Utilities for USB device sharing over IP network"
url="https://www.kernel.org/doc/readme/tools-usb-usbip-README" url="https://www.kernel.org/doc/readme/tools-usb-usbip-README"
arch="all" arch="all"
license="GPL-2.0" license="GPL-2.0-only"
depends="glib sysfsutils usbutils" depends="glib sysfsutils usbutils"
depends_dev="gcc automake autoconf eudev-dev libtool linux-headers sysfsutils-dev glib-dev" depends_dev="gcc automake autoconf eudev-dev libtool linux-headers sysfsutils-dev glib-dev"
makedepends="$depends_dev tar" 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 source="https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-$pkgver.tar.gz
usbip.initd usbip.initd
usbip.confd usbip.confd
...@@ -26,11 +26,18 @@ unpack() { ...@@ -26,11 +26,18 @@ unpack() {
tar -C $builddir --strip-components=4 -zxv -f $srcdir/linux-$pkgver.tar.gz $_baseurl tar -C $builddir --strip-components=4 -zxv -f $srcdir/linux-$pkgver.tar.gz $_baseurl
} }
prepare() {
default_prepare
/bin/sh autogen.sh
}
build() { build() {
export CFLAGS=$(echo $CFLAGS | sed 's|-Os|-O2|') export CFLAGS=$(echo $CFLAGS | sed 's|-Os|-O2|')
export CPPFLAGS="$CPPFLAGS $CFLAGS" export CPPFLAGS="$CPPFLAGS $CFLAGS"
/bin/sh autogen.sh ./configure \
./configure --prefix=/usr \ --build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \ --sysconfdir=/etc \
--mandir=/usr/share/man \ --mandir=/usr/share/man \
--infodir=/usr/share/info \ --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