jobcomm/biosdevname/PKGBUILD-aur

45 lines
1.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/jobcomm/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=biosdevname
pkgver=0.7.3
pkgrel=01
pkgdesc="Udev helper for naming devices per BIOS names"
url="https://github.com/dell/biosdevname"
depends=(pciutils)
makedepends=(zlib)
source=("https://github.com/dell/${pkgname}/archive/v${pkgver}.tar.gz")
build() {
cd "$srcdir/$pkgname-$pkgver"
./autogen.sh
./configure --disable-rpath --prefix=/usr \
--bindir=/usr/bin --sbindir=/usr/bin \
--libdir=/usr/bin --mandir=/usr/share/man
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
mv $pkgdir/lib $pkgdir/usr
sed -i $pkgdir/usr/lib/udev/rules.d/71-biosdevname.rules \
-e 's!/sbin/!/bin/!'
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL')
md5sums=('e7e76fd8e4b72e7364b10655a9e5f716')
sha256sums=(a)
##