diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b7cfa13729f5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Xu FaSheng <fasheng.xu@gmail.com> + +pkgname=pkgbuildup-git +pkgver=20131218 +pkgrel=1 +pkgdesc="A helper tool for AUR package maintainer to automatic update PKGBUILD files - Git version" +arch=(any) +url="https://github.com/fasheng/pkgbuildup" +license=(GPL3) +conflicts=() +provides=(pkgbuildup) +makedepends=('git') + +_gitroot="https://github.com/fasheng/pkgbuildup.git" +_gitname="pkgbuildup" + +build() { + cd "$srcdir" + + msg "Connecting to GIT server..." + if [[ -d $_gitname ]]; then + (cd $_gitname && git pull origin) + msg "The local files are updated." + else + git clone $_gitroot $_gitname + fi + msg "GIT checkout done or server timeout." +} + +package() { + msg "Starting install..." + cd "$_gitname" + make DESTDIR="${pkgdir}" install +} + +# vim:set ts=2 sw=2 et: |