Files
binary-repo/sys/apps/pciutils/ympbuild
T
2024-07-18 18:43:39 +03:00

34 lines
910 B
Bash

#!/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
}