diff options
author | jjacky | 2013-04-24 22:56:17 +0200 |
---|---|---|
committer | Olivier Brunel | 2015-06-08 19:10:30 +0200 |
commit | 22597eb4b5bb54c57c49d49c8ecb481f5dfa4374 (patch) | |
tree | d392dd605fd6fb11d263f983dc491502d9b3338e | |
parent | 0535dfb53508871d71a10e6316475b2efb0f73be (diff) | |
download | aur-22597eb4b5bb54c57c49d49c8ecb481f5dfa4374.tar.gz |
kalu-git: update PKGBUILD to 4.1 syntax
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 23 insertions, 34 deletions
@@ -1,8 +1,8 @@ pkgbase = kalu-git - pkgdesc = Upgrade notifier w/ AUR support, watched (AUR) packages, news - pkgver = 20130311 + pkgdesc = Upgrade notifier w/ AUR support, watched (AUR) packages, news [GIT] + pkgver = pkgrel = 1 - url = https://github.com/jjk-jacky/kalu + url = http://jjacky.com/kalu arch = i686 arch = x86_64 license = GPL3+ @@ -20,6 +20,8 @@ pkgbase = kalu-git depends = notification-daemon provides = kalu conflicts = kalu + source = git+https://github.com/jjk-jacky/{kalu}.git#branch=next + md5sums = SKIP pkgname = kalu-git @@ -1,47 +1,34 @@ # Maintainer: jjacky -pkgname=kalu-git -pkgver=20130311 +_pkgname=kalu +pkgname=$_pkgname-git +pkgver= pkgrel=1 -pkgdesc="Upgrade notifier w/ AUR support, watched (AUR) packages, news" +pkgdesc="Upgrade notifier w/ AUR support, watched (AUR) packages, news [GIT]" arch=('i686' 'x86_64') -url="https://github.com/jjk-jacky/kalu" +url="http://jjacky.com/$_pkgname" license=('GPL3+') -depends=('dbus' 'polkit' 'gtk3' 'pacman>=4.1' 'pacman<4.2' 'curl' 'libnotify' 'notification-daemon') +depends=('dbus' 'polkit' 'gtk3' 'pacman>=4.1' 'pacman<4.2' 'curl' 'libnotify' + 'notification-daemon') makedepends=('perl' 'groff' 'git' 'autoconf') -provides=('kalu') -conflicts=('kalu') - -_gitroot=https://github.com/jjk-jacky/kalu.git -_gitname=kalu +source=("git+https://github.com/jjk-jacky/{$_pkgname}.git#branch=next") +md5sums=('SKIP') +provides=($_pkgname) +conflicts=($_pkgname) + +pkgver() { + cd "$srcdir/$_pkgname" + git describe --abbrev=4 --dirty | tr - . +} build() { - cd "$srcdir" - msg "Connecting to GIT server...." - - if [[ -d "$_gitname" ]]; then - cd "$_gitname" && git pull origin next - msg "The local files are updated." - else - git clone -b next "$_gitroot" "$_gitname" - fi - - msg "GIT checkout done or server timeout" - msg "Starting build..." - - rm -rf "$srcdir/$_gitname-build" - git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" - cd "$srcdir/$_gitname-build" - - # - # BUILD HERE - # + cd "$srcdir/$_pkgname" ./autogen.sh ./configure --prefix=/usr --enable-git-version make } package() { - cd "$srcdir/$_gitname-build" + cd "$srcdir/$_pkgname" make DESTDIR="$pkgdir/" install } |