Skip to content

Commit

Permalink
PKGBUILD To pachook
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedElsiddig committed Mar 30, 2020
1 parent 4b681f5 commit fce1217
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Maintainer: Papajoker <papajoke [at] archlinux [dot] info>
pkgname=pachook
pkgver=0.1.3.r1.g5d6fe4f
pkgrel=1
pkgdesc="simple administrator pacman hooks"
arch=('any')
url="https://github.com/MohamedElsiddig/pachook"
license=('GPL')
depends=('pacman')
makedepends=('git')
source=("$pkgname::git+https://github.com/MohamedElsiddig/pachook")
md5sums=('SKIP')

pkgver() {
cd "$srcdir/$pkgname"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
cd "$srcdir/$pkgname"
install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
#cp -r usr ${pkgdir}/
cp -r etc ${pkgdir}/
}

0 comments on commit fce1217

Please sign in to comment.