diff options
author | Christoph Gysin | 2015-10-06 00:12:36 +0300 |
---|---|---|
committer | Christoph Gysin | 2015-10-06 00:12:56 +0300 |
commit | 20bc8e414a3a9767d03a844e5c8d4a20ea5eff03 (patch) | |
tree | 4640645bc6291306abae80a583989fb9db2dd2c7 | |
parent | 90dbfc8e834fb3d3d989b0cd728532542dd58ff8 (diff) | |
download | aur-20bc8e414a3a9767d03a844e5c8d4a20ea5eff03.tar.gz |
remove manual git cloning
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 4 insertions, 21 deletions
@@ -1,6 +1,6 @@ pkgbase = pasystray-git pkgdesc = PulseAudio system tray (a replacement for padevchooser) - pkgver = 0.5.2.r0.g6709fc1 + pkgver = 0.5.2.r17.gdd927f3 pkgrel = 1 url = https://github.com/christophgysin/pasystray install = pasystray.install @@ -1,7 +1,7 @@ # Maintainer: Christoph Gysin <christoph.gysin@gmail.com> _pkgname=pasystray pkgname=${_pkgname}-git -pkgver=0.5.2.r0.g6709fc1 +pkgver=0.5.2.r17.gdd927f3 pkgrel=1 pkgdesc="PulseAudio system tray (a replacement for padevchooser)" arch=('i686' 'x86_64') @@ -19,34 +19,17 @@ optdepends=( ) provides=('pasystray') conflicts=('pasystray') -backup=() -options=() install='pasystray.install' source=(git+https://github.com/christophgysin/pasystray.git) -noextract=() md5sums=('SKIP') -_gitroot=git://github.com/christophgysin/${pkgname%-git}.git -_gitname=${pkgname%-git} - pkgver() { cd $_pkgname git describe --long | sed -r "s/^${pkgname%-git}-//;s/([^-]*-g)/r\\1/;s/-/./g" } build() { - cd "$srcdir" - msg "Connecting to GIT server...." - if [[ -d $_gitname ]]; then - cd $_gitname - git fetch - git reset --hard origin/master - msg "The local files are updated." - else - git clone --depth=1 $_gitroot $_gitname - fi - msg "GIT checkout done or server timeout" - cd "$srcdir/$_gitname" + cd "$srcdir/$_pkgname" aclocal autoconf @@ -58,6 +41,6 @@ build() { } package() { - cd "$srcdir/$_gitname" + cd "$srcdir/$_pkgname" make DESTDIR="$pkgdir/" install } |