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/* }