jobcore/pciutils/PKGBUILD

60 lines
2.5 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.10.0
pkgrel=01
pkgdesc="PCI bus configuration space access library and tools"
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
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL2')
validpgpkeys=(C466A56CADA981F4297D20C31F3D0761D9B65F0B # Martin Mares <mj@ucw.cz>
5558F9399CD7836850553C6EC28E7847ED70F82D) # Martin Mares <mj@ucw.cz>
sha256sums=(7deabe38ae5fa88a96a8c4947975cf31c591506db546e9665a10dddbf350ead0 # pciutils-3.10.0.tar.xz
5790fe2b480acc071818e4138aedddc9fd8c1221f4f5077ede7e1237e919c8fb) # pciutils-3.10.0.tar.gz.sign
# https://mirrors.edge.kernel.org/pub/software/utils/pciutils/sha256sums.asc
##
## a057835e84db5a0a724ccaff7aba7f33c388edac0a5d06e7ddcb36494b52e6b2 pciutils-3.10.0.tar.sign
## 238a2e27166730e53a17fe07bfad229e07fa39b618117e5944b6d7eda9fbb0e9 pciutils-3.10.0.tar.xz (alt source)
## 7deabe38ae5fa88a96a8c4947975cf31c591506db546e9665a10dddbf350ead0 pciutils-3.10.0.tar.gz
## dae0dbbb5166d8987020e59028cb1ba62dbf5b6410b7fd4ea7cea94da8fd769b pciutils-3.10.0-01-x86_64.pkg.tar.lz