From d5fa083d689df727206e6c87f604212e9dcc4811 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Mon, 28 Jan 2019 00:08:07 -0800 Subject: Simplified PKGBUILD --- PKGBUILD | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD index 941a8b4..c5b50c7 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,27 +3,23 @@ # # I maintain this because: # Some sysctl parameters require being set twice to apply -pkgname=sysctl-v2-openrc -pkgver=20181217 +_pkgname=sysctl +_exname=${_pkgname}-repeat +pkgname=${_pkgname}-openrc-repeat +pkgver=20190127 pkgrel=1 -pkgdesc="OpenRC sysctl-v2 init script" +pkgdesc="OpenRC sysctl init script for stubborn sysctl prefs" arch=('any') +replaces=('sysctl-v2-openrc') url="https://neueland.iserlohn-fortress.net/gitea/jc_gargma" license=('GPL2') groups=('openrc-system') depends=('openrc') -backup=('etc/init.d/sysctl-v2') -source=("sysctl-v2.initd") +source=( + "${_exname}.initd" + ) sha256sums=('ed64389a37ad710aede890084d5e6886a807622f6eae341d32ab9fdda6f850a7') -#pkgver() { -# date +%Y%m%d -#} - -_inst_initd(){ - install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1 -} - package() { - _inst_initd 'sysctl-v2' + install -Dm755 ${srcdir}/${_exname}.initd ${pkgdir}/etc/init.d/${_exname} } -- cgit v1.2.1