aboutsummaryrefslogtreecommitdiffstats
path: root/community/system-config-printer/APKBUILD
blob: 4ae2794d60ad2990459044ab1eb0b39efd1d4df6 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=system-config-printer
pkgver=1.5.15
pkgrel=5
pkgdesc="Graphical user interface for CUPS administration"
url="https://github.com/OpenPrinting/system-config-printer"
arch="noarch"
license="GPL-2.0-or-later"
depends="
	libnotify
	python3
	py3-cairo
	py3-dbus
	py3-pycups
	py3-requests
	"
makedepends="
	autoconf
	automake
	intltool
	gettext-dev
	xmlto
	desktop-file-utils
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/OpenPrinting/system-config-printer/archive/v$pkgver/system-config-printer-v$pkgver.tar.gz"

prepare() {
	default_prepare

	sed -e 's|$(sysconfdir)/dbus-1|$(datadir)/dbus-1|' \
		-i Makefile.am

	update_config_guess
	update_config_sub

	./bootstrap
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="46340fa7624f7396b2fd683647bb3aca21d8b951b9744b7c03f9d5629af93d0567e861e0c3a976d113bb3516fc3364a4b0f3d13875a8f56286caf934dc5724dd  system-config-printer-v1.5.15.tar.gz"