summaryrefslogtreecommitdiff
path: root/community/setconf
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-05-07 22:31:25 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-05-07 22:31:25 -0300
commit9f7fb9c12e84f20cd108b933f1a51e216f76cd98 (patch)
tree06520d9024b40745b94f02d0d3419386e6496863 /community/setconf
parent6cc893589a6bd208f2b7711f985e17df7a6df816 (diff)
parenta86ff663185661ee304bb1f6d00d982102dd706d (diff)
Merge branch 'master' of gparabola:abslibre-mips64el
Diffstat (limited to 'community/setconf')
-rw-r--r--community/setconf/PKGBUILD33
1 files changed, 20 insertions, 13 deletions
diff --git a/community/setconf/PKGBUILD b/community/setconf/PKGBUILD
index ea12e6cd3..d95a12fc8 100644
--- a/community/setconf/PKGBUILD
+++ b/community/setconf/PKGBUILD
@@ -1,31 +1,38 @@
-# $Id: PKGBUILD 68685 2012-03-31 16:54:07Z arodseth $
+# $Id: PKGBUILD 89870 2013-05-03 20:55:10Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
pkgname=setconf
-pkgver=0.4
-pkgrel=1
-pkgdesc="Utility to easily change settings in Makefiles and configuration files"
+pkgver=0.5.3
+pkgrel=3
+pkgdesc='Utility to easily change settings in configuration files or Makefiles'
arch=('x86_64' 'i686' 'mips64el')
-url="http://setconf.roboticoverlords.org/"
-license=('GPL')
+url='http://setconf.roboticoverlords.org/'
+license=('GPL2')
depends=('pcre' 'gc')
-makedepends=('shedskin')
-source=("http://setconf.roboticoverlords.org/$pkgname-$pkgver.tbz2")
-sha256sums=('dca9d6e829f3247da8cb78434dd18d96f3439fc83a32626ff83d4a5c16099d31')
+if [ "$CARCH" == 'x86_64' ] || [ "$CARCH" == 'i686' ]; then
+ makedepends=('shedskin')
+fi
+source=("http://setconf.roboticoverlords.org/$pkgname-$pkgver.tar.xz")
+sha256sums=('f063b308bcebefe139418587527262ffce776584b1952224ec9a41d0562d55b6')
build() {
cd "$srcdir/$pkgname-$pkgver"
- shedskin "$pkgname.py"
- make CPPFLAGS="$CFLAGS"
+ if [ "$CARCH" == 'x86_64' ] || [ "$CARCH" == 'i686' ]; then
+ shedskin "$pkgname.py" && make
+ fi
}
package() {
cd "$srcdir/$pkgname-$pkgver"
- install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
+ 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"
- install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
# vim:set ts=2 sw=2 et: