diff options
author | root <root@rshg054.dnsready.net> | 2013-03-16 00:04:27 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-03-16 00:04:27 -0700 |
commit | ea60830c19f04f36803e26821bd9db1361489653 (patch) | |
tree | 36ad70529294c03ef83ce837c70e5d93fc35abd1 /community/setconf/PKGBUILD | |
parent | 6677e80954fee8b7bd931cfd5426fbf79c075246 (diff) |
Sat Mar 16 00:04:26 PDT 2013
Diffstat (limited to 'community/setconf/PKGBUILD')
-rw-r--r-- | community/setconf/PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/community/setconf/PKGBUILD b/community/setconf/PKGBUILD new file mode 100644 index 000000000..6d0586f00 --- /dev/null +++ b/community/setconf/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 86348 2013-03-15 13:28:26Z arodseth $ +# Maintainer: Alexander Rødseth <rodseth@gmail.com> + +pkgname=setconf +pkgver=0.5.3 +pkgrel=1 +pkgdesc='Utility to easily change settings in configuration files or Makefiles' +arch=('x86_64' 'i686') +url='http://setconf.roboticoverlords.org/' +license=('GPL2') +depends=('pcre' 'gc') +# Comment out the makedepends if you're on a platform not supported by shedskin +makedepends=('shedskin') +source=("http://setconf.roboticoverlords.org/$pkgname-$pkgver.tar.xz") +sha256sums=('f063b308bcebefe139418587527262ffce776584b1952224ec9a41d0562d55b6') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + [ -x /usr/bin/shedskin ] && shedskin "$pkgname.py" && make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + if [ -e "$pkgname" ]; then + install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" + else + depends=('python') + install -Dm755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname" + fi + install -Dm644 "$pkgname.1.gz" "$pkgdir/usr/share/man/man1/$pkgname.1.gz" +} + +# vim:set ts=2 sw=2 et: |