Added archlinux git package
authordanigm <dani@danigm.net>
Wed, 7 Apr 2010 21:55:54 +0000 (21:55 +0000)
committerdanigm <danigm@aa302d1f-72b1-406a-902b-8593ca2b2744>
Wed, 7 Apr 2010 21:55:54 +0000 (21:55 +0000)
From: danigm <dani@danigm.net>

git-svn-id: https://forja.rediris.es/svn/cusl4-tbo@116 aa302d1f-72b1-406a-902b-8593ca2b2744

archlinux/PKGBUILD [new file with mode: 0644]

diff --git a/archlinux/PKGBUILD b/archlinux/PKGBUILD
new file mode 100644 (file)
index 0000000..5414d9d
--- /dev/null
@@ -0,0 +1,36 @@
+# Maintainer: Daniel Garcia <dani@danigm.net>
+
+pkgname=tbo-git
+pkgver=20100407
+pkgrel=1
+pkgdesc="Gnome easy and fun comic editor"
+arch=('i686' 'x86_64')
+url="http://github.com/danigm/tbo/"
+license=('GPL3')
+depends=('gtk2' 'cairo' 'librsvg')
+makedepends=('gnome-common')
+source=()
+md5sums=()
+
+_gitroot="git://github.com/danigm/TBO.git"
+_gitname="tbo"
+
+build() {
+    if [ -d ${srcdir}/${_gitname} ]
+    then
+       msg "Updateing local repository..."
+       cd ${_gitname}
+       git pull origin master || return 1
+       msg "The local files are updated."
+    else
+       git clone ${_gitroot} ${_gitname}
+    fi
+    msg "git checkout done or server timeout"
+    msg "Starting make..."
+
+    cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
+    cd ${srcdir}/${_gitname}-build
+
+    ./autogen.sh --prefix=/usr || return 1
+    make DESTDIR=${pkgdir} install || return 1
+}