jobcore/pciutils/PKGBUILD

52 lines
2.1 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.13.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)
source=(git+https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git#tag=v$pkgver?signed)
build() {
cd $pkgname
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
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=('GPL-2.0-only')
validpgpkeys=(C466A56CADA981F4297D20C31F3D0761D9B65F0B # Martin Mares <mj@ucw.cz>
5558F9399CD7836850553C6EC28E7847ED70F82D) # Martin Mares <mj@ucw.cz>
sha256sums=(a198253ac31ee593aeaa4e84c4393f7ad9b1e513ebc6f85c42802dc4c744691d) # pciutils
## 5c69d1ecbb9b1cd29ab7a641b756b2718a87d06e1f2eca94e585a2ce8eaddc00 pciutils-3.13.0-01-x86_64.pkg.tar.lz