62 lines
2.9 KiB
Bash
62 lines
2.9 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=pciutils
|
|
pkgver=3.9.0
|
|
pkgrel=02
|
|
pkgdesc="PCI bus configuration space access library and tools"
|
|
arch=(x86_64)
|
|
url="https://mj.ucw.cz/sw/pciutils/"
|
|
url2="https://www.kernel.org/pub/software/utils/pciutils/"
|
|
depends=('glibc' 'hwdata' 'kmod')
|
|
#makedepends=('git')
|
|
optdepends=('which: for update-pciids'
|
|
'grep: for update-pciids'
|
|
'curl: for update-pciids')
|
|
source=(#ftp://ftp.kernel.org/pub/software/utils/${pkgname}/${pkgname}-${pkgver}.tar.bz2)
|
|
# https://mirrors.edge.kernel.org/pub/software/utils/${pkgname}/${pkgname}-${pkgver}.tar.{xz,sign})
|
|
https://mirrors.edge.kernel.org/pub/software/utils/${pkgname}/${pkgname}-${pkgver}.tar.xz)
|
|
# https://mj.ucw.cz/download/linux/pci/${pkgname}-${pkgver}.tar.gz{,.sign})
|
|
#git+https://github.com/pciutils/pciutils.git#tag=v$pkgver?signed)
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
make OPT="${CFLAGS} -fPIC -DPIC" ZLIB=no SHARED=no PREFIX=/usr SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man SBINDIR=/usr/bin lib/libpci.a
|
|
cp lib/libpci.a "${srcdir}/"
|
|
make clean
|
|
make OPT="${CFLAGS}" ZLIB=no SHARED=yes PREFIX=/usr SBINDIR=/usr/bin SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make SHARED=yes PREFIX=/usr SBINDIR=/usr/bin SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man DESTDIR="${pkgdir}" install install-lib
|
|
rm -rf "$pkgdir"/usr/share/hwdata
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('GPL2')
|
|
|
|
### temporarily unresponsive keyserver pkg will be remade later as pkgrel 03
|
|
### 03 in the repositories was made by commenting out gpgkeys and .sign source files
|
|
validpgpkeys=(C466A56CADA981F4297D20C31F3D0761D9B65F0B # Martin Mares <mj@ucw.cz>
|
|
5558F9399CD7836850553C6EC28E7847ED70F82D) # Martin Mares <mj@ucw.cz>
|
|
|
|
sha256sums=(cdea7ae97239dee23249a09c68a19a287a3f109fbeb2c232ebb616cb38599012) # pciutils-3.9.0.tar.xz
|
|
# 1705b004d3a638836e7444f3892c299db186a0121ff2635eada4ea35533e690e) # pciutils-3.9.0.tar.sign
|
|
|
|
#8953a785b2e3af414434b8fdcbfb75c90758819631001e60dd3afb89b22b2331) # pciutils-3.9.0.tar.gz
|
|
# e1f32991072cc621d99a2437a923af09951cf1ad95e578a359b4e486cf641d58) # pciutils-3.9.0.tar.gz.sign
|
|
|
|
# https://mirrors.edge.kernel.org/pub/software/utils/pciutils/sha256sums.asc
|
|
# 01f5b9ee8eff577e9953a43bafb3ead76e0654a7288dc26d79627074956fb1e0 pciutils-3.9.0.tar.gz
|
|
# cdea7ae97239dee23249a09c68a19a287a3f109fbeb2c232ebb616cb38599012 pciutils-3.9.0.tar.xz
|
|
|
|
# 8953a785b2e3af414434b8fdcbfb75c90758819631001e60dd3afb89b22b2331 pciutils-3.9.0.tar.gz
|
|
# e1f32991072cc621d99a2437a923af09951cf1ad95e578a359b4e486cf641d58 pciutils-3.9.0.tar.gz.sign
|
|
# cdea7ae97239dee23249a09c68a19a287a3f109fbeb2c232ebb616cb38599012 pciutils-3.9.0.tar.xz
|