Skip to content

Commit

Permalink
Add sprop
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Vincent committed Apr 22, 2011
1 parent 6f082bd commit 3edfcae
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions sprop/PKGBUILD
@@ -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
}

0 comments on commit 3edfcae

Please sign in to comment.