From d106982e6333a204418c1d3ab08f61c3263ae7cb Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Fri, 3 May 2013 00:45:51 +0000 Subject: [PATCH] added community/setconf to revert stupidity --- community/setconf/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 community/setconf/PKGBUILD diff --git a/community/setconf/PKGBUILD b/community/setconf/PKGBUILD new file mode 100644 index 000000000..dcc0e8f56 --- /dev/null +++ b/community/setconf/PKGBUILD @@ -0,0 +1,37 @@ +# $Id: PKGBUILD 89807 2013-05-02 13:36:01Z arodseth $ +# Maintainer: Alexander Rødseth + +# ALARM: Kevin Mihelich +# - revert the retard x86-restricted if statement around makedepends + +pkgname=setconf +pkgver=0.5.3 +pkgrel=2 +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') +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: