summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Hofmann2013-04-05 23:27:45 +0200
committerPeter Hofmann2013-04-05 23:45:54 +0200
commit4a90498b78472c603cab12352797cf628a7bf931 (patch)
tree2879dd880214f6203eaa3e9d1ed7353f4646d7ea
parent6b72b57eeb3d5ceba13f257eb2901209f7c7281c (diff)
downloadaur-4a90498b78472c603cab12352797cf628a7bf931.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 581fe6daece..7e238ef4585 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = sgopherd-git
pkgdesc = A gopher server written in Bash
- pkgver = 20121007
+ pkgver = 13.01
pkgrel = 1
url = https://github.com/vain/sgopherd
arch = any
@@ -10,6 +10,8 @@ pkgbase = sgopherd-git
optdepends = xinetd: Traditional way to run sgopherd
optdepends = systemd: sgopherd also works with socket activation
backup = etc/xinetd.d/sgopherd
+ source = git://github.com/vain/sgopherd.git
+ md5sums = SKIP
pkgname = sgopherd-git
diff --git a/PKGBUILD b/PKGBUILD
index 4bbc5c5cce9..88b6287a705 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,7 @@
# Maintainer: Vain <aurmaint1 on host: uninformativ dot de>
-pkgname=sgopherd-git
-pkgver=20121007
+_pkgname=sgopherd
+pkgname=$_pkgname-git
+pkgver=13.01
pkgrel=1
pkgdesc="A gopher server written in Bash"
arch=('any')
@@ -11,31 +12,16 @@ makedepends=('git')
backup=('etc/xinetd.d/sgopherd')
optdepends=('xinetd: Traditional way to run sgopherd'
'systemd: sgopherd also works with socket activation')
+source=(git://github.com/vain/sgopherd.git)
+md5sums=('SKIP')
-_gitroot="git://github.com/vain/sgopherd.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 sgopherd "$pkgdir"/usr/bin/sgopherd