Skip to content

Commit

Permalink
update packaging logic
Browse files Browse the repository at this point in the history
  • Loading branch information
techhazard committed Nov 12, 2024
1 parent 8b70bf8 commit 4be8f04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions iwd-firewalld-zone/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ sha256sums=('SKIP')


pkgver() {
cd "${_srcname}" || exit
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/*
}

0 comments on commit 4be8f04

Please sign in to comment.