43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Template file for 'setconf'
|
|
pkgname=setconf
|
|
version=0.7.6
|
|
revision=1
|
|
archs=noarch
|
|
build_style=python-module
|
|
pycompile_module="setconf.py"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python python-setuptools"
|
|
short_desc="Utility for changing settings in configuration textfiles (Python2)"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://setconf.roboticoverlords.org/"
|
|
distfiles="https://github.com/xyproto/setconf/archive/${version}.tar.gz"
|
|
checksum=183bcabcd859fc86d57666dfd0d4befe96841ea1e664a70e89ffff4def613f4f
|
|
|
|
alternatives="
|
|
setconf:setconf:/usr/bin/setconf2
|
|
setconf:setconf.1:/usr/share/man/man1/setconf2.1"
|
|
|
|
do_check() {
|
|
./setconf.py --test
|
|
cd testcases && ./test.sh
|
|
}
|
|
|
|
post_install() {
|
|
vman setconf.1 setconf2.1
|
|
}
|
|
|
|
python3-setconf_package() {
|
|
archs=noarch
|
|
depends="python3 python3-setuptools"
|
|
pycompile_module="setconf.py"
|
|
alternatives="
|
|
setconf:setconf:/usr/bin/setconf3
|
|
setconf:setconf.1:/usr/share/man/man1/setconf3.1"
|
|
short_desc="${short_desc/2/3}"
|
|
pkg_install() {
|
|
vmove usr/bin/setconf3
|
|
vmove usr/lib/python3*
|
|
vman setconf.1 setconf3.1
|
|
}
|
|
}
|