summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Hofmann2012-09-22 22:42:37 +0200
committerPeter Hofmann2012-09-22 22:42:37 +0200
commit8fcb9c4a610521191059a5cd0d309a1b63d71e49 (patch)
tree3e895b40e4ad6f7ab72d47a474871758fc3d9491
downloadaur-8fcb9c4a610521191059a5cd0d309a1b63d71e49.tar.gz
Added PKGBUILD for gitary.
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD53
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3b7ff6ec088
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = gitary-git
+ pkgdesc = A diary using git as its backend
+ pkgver = 20120922
+ pkgrel = 1
+ url = http://www.uninformativ.de/projects/?q=gitary
+ arch = any
+ license = custom:PIZZA-WARE
+ makedepends = git
+ depends = git
+ optdepends = vim: A reasonable editor, syntax files are provided
+
+pkgname = gitary-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cd72be8d207
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Vain <aurmaint1 on host: uninformativ dot de>
+pkgname=gitary-git
+pkgver=20120922
+pkgrel=1
+pkgdesc="A diary using git as its backend"
+arch=('any')
+url='http://www.uninformativ.de/projects/?q=gitary'
+license=('custom:PIZZA-WARE')
+makedepends=('git')
+depends=('git')
+optdepends=(
+ 'vim: A reasonable editor, syntax files are provided'
+)
+
+_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"
+}
+
+package() {
+ cd "$srcdir/$_gitname-build"
+
+ install -Dm755 gitary "$pkgdir"/usr/bin/gitary
+ install -Dm644 gitary-functions "$pkgdir"/usr/lib/gitary/gitary-functions
+
+ install -Dm644 man1/gitary.1 "$pkgdir"/usr/share/man/man1/gitary.1
+
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ install -Dm644 vim/ftdetect/gitary.vim \
+ "$pkgdir"/usr/share/vim/vimfiles/ftdetect/gitary.vim
+ install -Dm644 vim/syntax/gitary.vim \
+ "$pkgdir"/usr/share/vim/vimfiles/syntax/gitary.vim
+}
+
+# vim:set ts=2 sw=2 et: