summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Hofmann2012-01-24 16:55:43 +0100
committerPeter Hofmann2012-01-24 16:55:43 +0100
commit591d53629557a5bed63a6892ef8ffd770ba6ea75 (patch)
tree970296cf26f0e12a0502c69e56e5c4aefc169364
downloadaur-591d53629557a5bed63a6892ef8ffd770ba6ea75.tar.gz
Initial: Copied all existing PKGBUILDs.
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD43
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..396b8539812
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = sgopherd-git
+ pkgdesc = A gopher server written in Bash
+ pkgver = 20111105
+ pkgrel = 1
+ url = https://github.com/vain/sgopherd
+ arch = any
+ license = custom:PIZZA-WARE
+ makedepends = git
+ depends = bash
+ depends = xinetd
+ backup = etc/xinetd.d/sgopherd
+
+pkgname = sgopherd-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8db8c0ed524
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Vain <aurmaint1 on host: uninformativ dot de>
+pkgname=sgopherd-git
+pkgver=20111105
+pkgrel=1
+pkgdesc="A gopher server written in Bash"
+arch=('any')
+url="https://github.com/vain/sgopherd"
+license=('custom:PIZZA-WARE')
+depends=('bash' 'xinetd')
+makedepends=('git')
+backup=('etc/xinetd.d/sgopherd')
+
+_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"
+}
+
+package() {
+ cd "$srcdir/$_gitname-build"
+ install -Dm755 sgopherd "$pkgdir"/usr/bin/sgopherd
+ install -Dm644 xinetd-example.conf "$pkgdir"/etc/xinetd.d/sgopherd
+ install -Dm644 man8/sgopherd.8 "$pkgdir"/usr/share/man/man8/sgopherd.8
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: