desktop/setconf/PKGBUILD

24 lines
708 B
Bash
Raw Normal View History

2014-01-07 05:01:52 +08:00
# Contributions from Arch: https://www.archlinux.org/packages/community/any/setconf/
pkgname=setconf
2018-09-15 21:52:37 +08:00
pkgver=0.7.5
2015-05-05 05:06:03 +08:00
pkgrel=1
2018-09-15 21:52:37 +08:00
pkgdesc='Utility for easily changing settings in configuration files'
2014-01-07 05:01:52 +08:00
arch=('x86_64')
2018-09-15 21:52:37 +08:00
url="https://setconf.roboticoverlords.org/"
license=('GPL')
2014-01-07 05:01:52 +08:00
depends=('python2')
2018-09-15 21:52:37 +08:00
source=("https://setconf.roboticoverlords.org/$pkgname-$pkgver.tar.xz")
sha256sums=('3aa5ded4c3e1996a78cbbcbd7b9af051e3a197f6e79fced9ebb118da902a52fe')
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"
}