From 89227ea960a601072e8158ac092d33b6da3cfb92 Mon Sep 17 00:00:00 2001 From: Vince van Oosten Date: Tue, 12 Nov 2024 16:15:19 +0100 Subject: [PATCH] New release (#6) * fix pkgver function * fix email * increment release number * update packaging logic --- iwd-firewalld-zone/PKGBUILD | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/iwd-firewalld-zone/PKGBUILD b/iwd-firewalld-zone/PKGBUILD index 7611240..cb3f9b3 100644 --- a/iwd-firewalld-zone/PKGBUILD +++ b/iwd-firewalld-zone/PKGBUILD @@ -1,8 +1,8 @@ -# Maintainer: Vince van Oosten +# Maintainer: Vince van Oosten # Contributor: Rhys Perry pkgname=iwd-firewalld-zone-git _srcname=iwd-firewalld-zone -pkgver=1.0.0 +pkgver=1.1.0 pkgrel=1 pkgdesc='Automatically move wireless interface into firewalld zone based on setting in relevant iwd network file ' arch=(any) @@ -18,11 +18,11 @@ sha256sums=('SKIP') pkgver() { - cd "${_srcname}" - git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + ( cd "${_srcname}" && git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ) } package() { - install -Dm 755 -t "${pkgdir}"/usr/bin/ "${_srcname}"/bin/* - install -Dm 644 -t "${pkgdir}"/usr/lib/systemd/system/ "${_srcname}"/systemd/system/* + cd "${srcdir}/${_srcname}/iwd-firewalld-zone/" || exit + install -Dm 755 -t "${pkgdir}"/usr/bin/ ./bin/* + install -Dm 644 -t "${pkgdir}"/usr/lib/systemd/system/ ./systemd/system/* }