summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Hofmann2013-04-05 23:27:45 +0200
committerPeter Hofmann2013-04-05 23:45:54 +0200
commiteb20e7be85cbff3b757bd9d2c36a79ee2ccff223 (patch)
tree7f8fc0aa26f623e8b48e083ae292785b0ccb1e8b
parentac1fca65d5e1a253324038f75f3934c5b894d732 (diff)
downloadaur-eb20e7be85cbff3b757bd9d2c36a79ee2ccff223.tar.gz
Update all PKGBUILDs for pacman 4.1
As recommended on the ML, I chose not to bump the epoch.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD32
2 files changed, 12 insertions, 24 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3b7ff6ec088..e774232ad57 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = gitary-git
pkgdesc = A diary using git as its backend
- pkgver = 20120922
+ pkgver = 13.01.1.gd605beb
pkgrel = 1
url = http://www.uninformativ.de/projects/?q=gitary
arch = any
@@ -8,6 +8,8 @@ pkgbase = gitary-git
makedepends = git
depends = git
optdepends = vim: A reasonable editor, syntax files are provided
+ source = git://github.com/vain/gitary.git
+ md5sums = SKIP
pkgname = gitary-git
diff --git a/PKGBUILD b/PKGBUILD
index cd72be8d207..d3843de5dc8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,7 @@
# Maintainer: Vain <aurmaint1 on host: uninformativ dot de>
-pkgname=gitary-git
-pkgver=20120922
+_pkgname=gitary
+pkgname=$_pkgname-git
+pkgver=13.01.1.gd605beb
pkgrel=1
pkgdesc="A diary using git as its backend"
arch=('any')
@@ -11,31 +12,16 @@ depends=('git')
optdepends=(
'vim: A reasonable editor, syntax files are provided'
)
+source=(git://github.com/vain/gitary.git)
+md5sums=('SKIP')
-_gitroot='git://github.com/vain/gitary.git'
-_gitname='master'
-
-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 build..."
-
- rm -rf "$srcdir/$_gitname-build"
- git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
- cd "$srcdir/$_gitname-build"
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git describe --always | sed 's|-|.|g; s|v||'
}
package() {
- cd "$srcdir/$_gitname-build"
+ cd "$srcdir/$_pkgname"
install -Dm755 gitary "$pkgdir"/usr/bin/gitary
install -Dm644 gitary-functions "$pkgdir"/usr/lib/gitary/gitary-functions