blob: 071ae8b2a4d6a8b41af8d358086b852338c7d427 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=pciutils-git
pkgver=3.5.6.r1.ge4d209f
pkgrel=1
pkgdesc="Programs for inspecting and manipulating configuration of PCI devices"
arch=('i686' 'x86_64')
url="https://mj.ucw.cz/sw/pciutils/"
license=('GPL2')
depends=('glibc' 'sh' 'hwids' 'kmod')
makedepends=('git')
provides=('pciutils')
conflicts=('pciutils')
options=('staticlibs')
source=("git+https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git")
sha256sums=('SKIP')
pkgver() {
cd "pciutils"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "pciutils"
make OPT="$CFLAGS" SHARED=no ZLIB=no
cp "lib/libpci.a" "$srcdir"
make clean
make OPT="$CFLAGS" SHARED=yes ZLIB=no
}
package() {
cd "pciutils"
make DESTDIR="$pkgdir" PREFIX="/usr" SBINDIR="/usr/bin" SHAREDIR="/usr/share/hwdata" SHARED=yes ZLIB=no install install-lib
install -m644 "$srcdir/libpci.a" "$pkgdir/usr/lib"
# supplied by hwids package
rm -rf "$pkgdir/usr/share/hwdata"
}
|