diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3852aff8f6d5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Joan Rieu <joan.rieu@gmail.com> +_pkgname=pacnew-auto +pkgname=$_pkgname-git +pkgver=r3.2b27b54 +pkgrel=1 +pkgdesc="Automatic pacman pacnew file merging using git rebase" +arch=(any) +url="https://github.com/joanrieu/pacnew-auto" +license=('MIT') +depends=(git) +source=("git+https://github.com/joanrieu/$_pkgname") +noextract=() +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + DESTDIR="$pkgdir/usr/bin/" + mkdir -p "$DESTDIR" + mv "$_pkgname/$_pkgname.sh" "$DESTDIR/$_pkgname" +} |