updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / subtly-hg / PKGBUILD
blob8bd8b375610ec376f8b2c952bc18f48fea6da6ba
1 # Contributor: unexist <unexist@dorfelite.net>
2 pkgname="subtly-hg"
3 pkgver=49
4 pkgrel=1
5 pkgdesc="A small ruby webkit/gtk browser"
6 arch=("i686" "x86_64")
7 url="http://subtle.de/projects/show/subtly"
8 license=("GPL")
9 depends=("ruby" "ruby-ffi" "libwebkit" "gtk2")
10 makedepends=("mercurial" "ruby")
11 provides=("subtly")
12 source=()
13 md5sums=()
15 _hgroot="http://hg.subtle.de"
16 _hgrepo="subtly"
18 build() {
19   msg "Connecting to mercurial repository..."
21   cd ${srcdir}
23   if [ -d "${hgrepo}" ]; then
24     cd ${_hgrepo}
25     hg pull -u -r ${pkgver}
26     rake clobber
27   else
28     hg clone -r ${pkgver} "${_hgroot}/${_hgrepo}"
29     cd ${_hgrepo}
30   fi
32   msg "Mercurial clone finished."
33   msg "Starting rake..."
35   cd "${srcdir}"
36   cp -r ${_hgrepo} ${_hgrepo}-build
37   cd "${_hgrepo}-build"
39   rake destdir=${startdir}/pkg install || return 1
41   rm -rf "${srcdir}/${_hgrepo}-build"