blob: f3e2edad20a41c7de5cff1b98d88d66627fa2400 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# $Id: PKGBUILD 89870 2013-05-03 20:55:10Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
pkgname=setconf
pkgver=0.5.3
pkgrel=3
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')
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"
if [ "$CARCH" == 'x86_64' ] || [ "$CARCH" == 'i686' ]; then
shedskin "$pkgname.py" && make
fi
}
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:
|