diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f0f75d817877 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Salamandar <felix@piedallu.me> +pkgname='aur-updater-git' +_gitname='aur-updater' +pkgver=r2.303470e +pkgrel=1 +pkgdesc="Easy tool to update your PKGBUILDS and update the AUR database automatically" +arch=('any') +url="https://github.com/Salamandar/$_gitname.git" +license=('GPL') +groups=() +makedepends=('git') +depends=('bash' 'pkgbuild-introspection' 'pacman' 'namcap') +source=("git+$url") +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/$_gitname" + printf "%s.%s" "$( set -o pipefail + git describe --long --tags 2>/dev/null \ + | sed 's/\([^-]*-g\)/r\1/;s/-/./g' \ + | sed -r 's/.([0-9,a-g,A-G]{7}.*)//' || + printf "r%s" "$(git rev-list --count HEAD)" + )" "$(git rev-parse --short HEAD)" +} + + +package() { + cd "$srcdir/$_gitname" + chmod +x ./aur-updater.sh + + install -d $pkgdir/usr/bin/ + cp ./aur-updater.sh "$pkgdir/usr/bin" +} |