desktop/setconf/PKGBUILD
Adrian Chaves Fernandez (Gallaecio) 6ebde54b0b setconf: Fixed patching for Python 2
While compiling a rebuilt version of SuperTuxKart, setconf failed because of
trying to use python22.
2015-01-24 12:18:57 +00:00

26 lines
825 B
Bash

# Maintainer: Jeff Huang <s8321414[at]gmail[dot]com>
# Contributor: Inkane <neoinkaneglade@aol.com>
# Contributions from Arch: https://www.archlinux.org/packages/community/any/setconf/
pkgname=setconf
pkgver=0.6.4
pkgrel=2
pkgdesc="A utility to easily change settings in Makefiles and other configuration files"
arch=('x86_64')
url="http://setconf.roboticoverlords.org/"
license=('GPL')
depends=('python2')
source=("http://setconf.roboticoverlords.org/$pkgname-$pkgver.tar.xz")
sha256sums=('c2bc02c0b787afacf9fffc9bd5d24aa623e140daee1e056f1c6d97dcf6bea88a')
prepare() {
sed -i 's:usr/bin/python$:usr/bin/python2:' "$pkgname-$pkgver/$pkgname.py"
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "$pkgname.1.gz" "$pkgdir/usr/share/man/man1/$pkgname.1.gz"
}