summaryrefslogtreecommitdiffstats
path: root/extra/system-config-printer/Pkgfile
blob: 2d74e994c52f89ff8c19b5c5f49e7ee788e05998 (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
# Description: Configuration de cups via Python
# URL: http://cyberelk.net/tim/software/system-config-printer/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: pycups, pyxml, dbus-python, xmlto, intltool
# Run on: pycups,pyxml,dbus-python,xmlto

name=system-config-printer
version=1.3.1
python_version=2.7
release=1

source=(http://cyberelk.net/tim/data/$name/1.3/$name-$version.tar.xz)

build() {
	unset MAKEFLAGS
	cd $name-$version
        ./configure --prefix=/usr \
		--sbindir=/usr/bin \
		--sysconfdir=/etc
	make
	install -d $PKG/usr/share/$name
	install -d $PKG/usr/lib/python$python_version/site-packages/cupshelpers
	install -m644 config.py debug.py smburi.py \
	$PKG/usr/share/$name/
	for i in build/lib/cupshelpers/*.py; do
    		install -Dm644 $i \
		$PKG/usr/lib/python$python_version/site-packages/cupshelpers/$(basename $i)
	done
}