Created
October 25, 2010 13:22
-
-
Save manveru/644943 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: unexist <[email protected]> | |
# Contributor: Xilon <[email protected]> | |
pkgname="subtle-hg" | |
pkgver=2222 | |
pkgrel=1 | |
pkgdesc="A grid-based manual tiling window manager with a strong focus on easy but customizable look and feel" | |
arch=("i686" "x86_64") | |
url="http://subtle.subforge.org" | |
license=("GPL") | |
depends=("libx11" "ruby" "ruby-curb" "ruby-minitar") | |
makedepends=("mercurial" "ruby" "pkg-config") | |
provides=("subtle") | |
conflicts=("subtle" "sur-hg") | |
replaces=("subtle-svn") | |
backup=("etc/xdg/subtle/subtle.rb") | |
source=() | |
md5sums=() | |
_hgroot="http://hg.subforge.org" | |
_hgrepo="subtle" | |
build() { | |
cd "${srcdir}/${_hgrepo}" | |
rake destdir=${startdir}/pkg install || return 1 | |
rm -rf "${srcdir}/${_hgrepo}" | |
} | |
build() { | |
cd "$srcdir" | |
msg "Connecting to Mercurial server...." | |
if [ -d $_hgrepo ] ; then | |
cd $_hgrepo | |
hg pull -u || return 1 | |
msg "The local files are updated." | |
else | |
hg clone $_hgroot $_hgrepo || return 1 | |
fi | |
msg "Mercurial checkout done or server timeout" | |
msg "Starting make..." | |
rm -rf "$srcdir/$_hgrepo-build" | |
cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build" | |
# | |
# BUILD HERE | |
# | |
} | |
package() { | |
cd "$srcdir/$_hgrepo-build" | |
rake destdir=${startdir}/pkg install || return 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment