Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tom Vincent
committed
Apr 22, 2011
1 parent
6f082bd
commit 3edfcae
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Maintainer: Tom Vincent <http://www.tlvince.com/contact/> | ||
pkgname=sprop-hg | ||
pkgver=3 | ||
pkgrel=1 | ||
pkgdesc="sprop is a simple X property utility" | ||
arch=('any') | ||
url="http://tools.suckless.org/sprop" | ||
license=('MIT') | ||
makedepends=('mercurial') | ||
|
||
_hgroot="http://hg.suckless.org/" | ||
_hgrepo="sprop" | ||
|
||
build() { | ||
cd "$srcdir" | ||
msg "Connecting to Mercurial server...." | ||
|
||
if [ -d $_hgrepo ] ; then | ||
cd $_hgrepo | ||
hg pull -u | ||
msg "The local files are updated." | ||
else | ||
hg clone $_hgroot $_hgrepo | ||
fi | ||
|
||
msg "Mercurial checkout done or server timeout" | ||
msg "Starting make..." | ||
|
||
rm -rf "$srcdir/$_hgrepo-build" | ||
cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build" | ||
cd "$srcdir/$_hgrepo-build" | ||
|
||
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 | ||
} | ||
|
||
package() { | ||
cd "$srcdir/$_hgrepo-build" | ||
make PREFIX="/usr" DESTDIR="$pkgdir/" install | ||
} |