Date: Friday, March 15, 2013 @ 14:28:16 Author: arodseth Revision: 86347
upgpkg: setconf 0.5.3-1 Modified: setconf/trunk/PKGBUILD ----------+ PKGBUILD | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-03-15 12:57:11 UTC (rev 86346) +++ PKGBUILD 2013-03-15 13:28:16 UTC (rev 86347) @@ -2,25 +2,34 @@ # Maintainer: Alexander Rødseth <[email protected]> pkgname=setconf -pkgver=0.5.2 -pkgrel=2 +pkgver=0.5.3 +pkgrel=1 pkgdesc='Utility to easily change settings in configuration files or Makefiles' -arch=('any') +arch=('x86_64' 'i686') url='http://setconf.roboticoverlords.org/' -license=('GPL') -depends=('python') -source=("http://setconf.roboticoverlords.org/$pkgname-$pkgver.tbz2") -sha256sums=('3225a5392becbe6d679075be9ddd78e2c737d8158920c2f242f95d0765cfb250') +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 - sed -i '0,/on/s//on3/' $pkgname.py + cd "$srcdir/$pkgname-$pkgver" + + [ -x /usr/bin/shedskin ] && shedskin "$pkgname.py" && make } package() { - cd $srcdir/$pkgname-$pkgver - install -Dm755 $pkgname.py $pkgdir/usr/bin/$pkgname - install -Dm644 $pkgname.1.gz $pkgdir/usr/share/man/man1/$pkgname.1.gz + 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:
