desktop/setconf/PKGBUILD

25 lines
772 B
Bash
Raw Normal View History

# Contributor: Inkane <neoinkaneglade@aol.com>
2014-01-07 05:01:52 +08:00
# Contributions from Arch: https://www.archlinux.org/packages/community/any/setconf/
pkgname=setconf
2014-01-07 05:01:52 +08:00
pkgver=0.6.2
pkgrel=1
pkgdesc="A utility to easily change settings in Makefiles and other configuration files"
2014-01-07 05:01:52 +08:00
arch=('x86_64')
url="http://setconf.roboticoverlords.org/"
license=('GPL')
2014-01-07 05:01:52 +08:00
depends=('python2')
source=("http://$pkgname.roboticoverlords.org/$pkgname-$pkgver.tar.xz")
sha256sums=('8f91dc5cc24cc9d4f7c34fbc657259384f99d7222b6df9375bac5436d601d0c2')
2014-01-07 05:01:52 +08:00
prepare() {
sed -i 's:usr/bin/python:usr/bin/python2:' "$pkgname-$pkgver/$pkgname.py"
}
package() {
2014-01-07 05:01:52 +08:00
cd "$pkgname-$pkgver"
2014-01-07 05:01:52 +08:00
install -Dm755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "$pkgname.1.gz" "$pkgdir/usr/share/man/man1/$pkgname.1.gz"
}