diff options
author | Ramana Kumar | 2015-08-11 09:29:06 +0000 |
---|---|---|
committer | Ramana Kumar | 2015-08-11 09:29:06 +0000 |
commit | 7b7bdd65911b326366720e6721e23bf90e7c4e9c (patch) | |
tree | b848846a3b3cf86e258bc69caa67e322a9c1347d | |
parent | a32ef91ad2dafd887092407b281f8f31c22a9da8 (diff) | |
download | aur-7b7bdd65911b326366720e6721e23bf90e7c4e9c.tar.gz |
rewrite PKGBUILD
attempting to follow latest conventions
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 11 insertions, 22 deletions
@@ -1,7 +1,7 @@ # Maintainer: Ramana Kumar <firstname.lastname @ gmail at com> pkgname=vim-inkpot-git -pkgver=20120720 -pkgrel=2 +pkgver=r9.b86ad4d +pkgrel=1 pkgdesc="Inkpot, a dark scheme for GUI and 88/256 colour terms" arch=('i686' 'x86_64') url="http://github.com/ciaranm/inkpot" @@ -9,26 +9,15 @@ license=('GPL') depends=('vim') makedepends=('git') groups=('vim-plugins') -_gitroot="git://github.com/ciaranm/inkpot.git" -_gitname="inkpot" +source=('git://github.com/ciaranm/inkpot.git') +md5sums=('SKIP') -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" - msg "Starting make..." - - rm -rf "$srcdir/$_gitname-build" - git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" - cd "$srcdir/$_gitname-build" +pkgver() { + cd "$srcdir/inkpot" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} - install -D colors/inkpot.vim ${pkgdir}/usr/share/vim/vimfiles/colors/inkpot.vim || return 1 +package() { + cd "$srcdir/inkpot" + install -D colors/inkpot.vim ${pkgdir}/usr/share/vim/vimfiles/colors/inkpot.vim || return 1 } |