jobcore/openresolv/PKGBUILD

59 lines
1.5 KiB
Bash
Raw Permalink Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
2023-07-01 22:57:19 +02:00
# Maintainer : Joe Bo Run <joborun@disroot.org>
2022-03-20 13:19:37 +01:00
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
2023-07-01 22:57:19 +02:00
# Website : https://pozol.eu
2022-03-20 13:19:37 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=openresolv
2023-07-01 22:57:19 +02:00
pkgver=3.13.2
pkgrel=02
2022-03-20 13:19:37 +01:00
pkgdesc="resolv.conf management framework (resolvconf) w/o systemd"
url="https://roy.marples.name/projects/openresolv"
backup=(etc/resolvconf.conf)
provides=(resolvconf)
conflicts=(resolvconf)
2022-03-20 13:19:37 +01:00
depends=(bash)
makedepends=()
2023-05-29 14:48:01 +02:00
#source=("https://roy.marples.name/downloads/openresolv/${pkgname}-${pkgver}.tar.xz"
2023-07-01 22:57:19 +02:00
_commit=867a412d63a28d2c4978e02fc44fb8013f46d356 # tags/v3.13.2^0
2023-05-29 14:48:01 +02:00
source=("git+https://github.com/NetworkConfiguration/openresolv#commit=$_commit")
pkgver() {
cd $pkgname
git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
}
2022-03-20 13:19:37 +01:00
prepare() {
2023-05-29 14:48:01 +02:00
cd $pkgname
# patch -Np1 -i ../fs33801.patch
2022-03-20 13:19:37 +01:00
}
build() {
2023-05-29 14:48:01 +02:00
cd $pkgname
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/resolvconf \
--sbindir=/usr/bin
2022-03-20 13:19:37 +01:00
make
}
package() {
2023-05-29 14:48:01 +02:00
cd $pkgname
2022-03-20 13:19:37 +01:00
make DESTDIR="$pkgdir" install
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 LICENSE
}
2023-05-29 14:48:01 +02:00
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
2022-03-20 13:19:37 +01:00
license=('custom:BSD')
2023-05-29 14:48:01 +02:00
sha256sums=(SKIP)
## 37708f1b8800cba43eecc22b9945bc30ea7f99d293164c09e3affde32de83c50 openresolv-3.13.2-02-x86_64.pkg.tar.lz
37708f1b8800cba43eecc22b9945bc30ea7f99d293164c09e3affde32de83c50 openresolv-3.13.2-02-x86_64.pkg.tar.lz