diff --git a/sys/apps/pciutils/ympbuild b/sys/apps/pciutils/ympbuild new file mode 100644 index 00000000..7998ec29 --- /dev/null +++ b/sys/apps/pciutils/ympbuild @@ -0,0 +1,33 @@ +#!/usr/bin/env bash +name='pciutils' +release='1' +version='3.13.0' +url='https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git' +description='PCI bus configuration space access library and tools' +email='brkt8khn@gmail.com' +maintainer='brkt8khn' +license=('GPLv3') +source=("https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git/snapshot/pciutils-$version.tar.gz") +depends=(hwdata kmod) +makedepends=(git) +sha256sums=('861fc26151a4596f5c3cb6f97d6c75c675051fa014959e26fb871c8c932ebc67') +group=(sys.apps) +uses=() +arch=('x86_64') + +cd $name-$version + +build(){ + make OPT="$CFLAGS -fPIC -flto=auto" ZLIB=no \ + SHARED=yes \ + PREFIX=/usr \ + SHAREDIR=/usr/share/hwdata \ + all +} + +package(){ + make SHARED=yes PREFIX=/usr SBINDIR=/usr/bin SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man DESTDIR="${DESTDIR}" install install-lib + + # this is now supplied by the hwids package + rm -rf "$DESTDIR"/usr/share/hwdata +} diff --git a/sys/apps/usbutils/ympbuild b/sys/apps/usbutils/ympbuild new file mode 100644 index 00000000..f01ce541 --- /dev/null +++ b/sys/apps/usbutils/ympbuild @@ -0,0 +1,33 @@ +#!/usr/bin/env bash +name='usbutils' +release='1' +version='017' +url='https://linux-usb.sourceforge.net' +description='USB Device Utilities' +email='brkt8khn@gmail.com' +maintainer='brkt8khn' +license=('GPLv3') +source=("https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/snapshot/usbutils-$version.tar.gz") +depends=(hwdata) +makedepends=(libusb eudev) +sha256sums=('7bb79a4c3fc664b700838add2444906919fd1d9bd767a733fc4b23975d2872b7') +group=(sys.apps) +uses=() +arch=('x86_64') + +cd $name-$version + +setup(){ + autoreconf -fvi + ./configure --prefix=/usr\ + --libdir=/usr/lib64 \ + --datadir=/usr/share/hwdata +} +build(){ + make +} + +package(){ + make DESTDIR="$DESTDIR" install + install -vDm 755 usbreset -t "$DESTDIR/usr/bin" +}