updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / bgs-hg / PKGBUILD
blob1c721aa47d759b38049eb7aa581937b0a5266cb6
1 # Contributer: Paride Legovini <legovini@spiro.fisica.unipd.it>
3 pkgname="bgs-hg"
4 pkgver=39
5 pkgrel=1
6 pkgdesc="Imlib2 based, Xinerama/Xrandr-aware minimalist background setter (last hg pull)"
7 url="http://s01.de/~tox/index.cgi/proj_bgs"
8 license=("MIT")
9 arch=("i686" "x86_64")
10 depends=("libx11" "libxinerama" "imlib2")
11 makedepends=("mercurial")
12 optdepends=()
13 conflicts=("bgs")
14 provides=("bgs")
15 source=()
16 md5sums=()
18 _hgroot="http://s01.de/~tox/hg"
19 _hgrepo="bgs"
21 build() {
22         cd ${srcdir}
24         # update the repo, else clone a new one
25         if [ -d ${_hgrepo} ]; then
26                 cd ${_hgrepo}
27                 make clean
28                 hg pull -u
29         else
30                 hg clone ${_hgroot}/${_hgrepo}
31                 cd ${_hgrepo}
32         fi
34         # add the correct settings to config.mk
35         sed -e "s|^\(\s*PREFIX =\).*|\1 /usr|" -i config.mk
37         msg "Starting build process."
38         make || return 1
39         make DESTDIR=${pkgdir} install