62 lines
1.4 KiB
Bash
62 lines
1.4 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=sysfsutils
|
|
pkgver=2.1.1.r13.g085bba6
|
|
pkgrel=02
|
|
pkgdesc="A set of utilities for interfacing with system devices"
|
|
url="https://linux-diag.sourceforge.net/Sysfsutils.html"
|
|
depends=('glibc')
|
|
makedepends=('git')
|
|
provides=("sysfsutils=$pkgver")
|
|
conflicts=('sysfsutils')
|
|
options=('staticlibs')
|
|
source=("git+https://github.com/linux-ras/sysfsutils.git")
|
|
|
|
pkgver() {
|
|
cd "sysfsutils"
|
|
|
|
_tag=$(git tag -l --sort -v:refname | sed '/rc[0-9]*/d' | head -n1)
|
|
_rev=$(git rev-list --count $_tag..HEAD)
|
|
_hash=$(git rev-parse --short HEAD)
|
|
printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^v//'
|
|
}
|
|
|
|
prepare() {
|
|
cd "$pkgname"
|
|
./autogen
|
|
}
|
|
|
|
build() {
|
|
cd "$pkgname"
|
|
./configure \
|
|
--prefix="/usr" \
|
|
--mandir=/usr/share/man
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$pkgname"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname"
|
|
make DESTDIR="$pkgdir" install
|
|
# rm "$pkgdir/usr/lib/libsysfs.a"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(GPL LGPL)
|
|
|
|
sha256sums=(SKIP)
|
|
|
|
## de4bc1eedf99e71ddcf6b0f92ed672f64bab03b2e436c097c725cafb223a8b9e sysfsutils-2.1.1.r13.g085bba6-02-x86_64.pkg.tar.lz
|
|
|