archrelease: copy trunk to extra-x86_64
[arch-packages.git] / cups-pk-helper / trunk / PKGBUILD
bloba7e6a4deeb3a6e62d087c1d9b33ae0fc1283ea2b
1 # Maintainer: Ionut Biru <ibiru@archlinux.org>
3 pkgname=cups-pk-helper
4 pkgver=0.2.6
5 pkgrel=4
6 pkgdesc="A helper that makes system-config-printer use PolicyKit"
7 arch=(x86_64)
8 url="https://www.freedesktop.org/software/cups-pk-helper/releases/"
9 license=('GPL')
10 depends=(polkit libcups)
11 makedepends=(intltool)
12 source=(https://www.freedesktop.org/software/$pkgname/releases/$pkgname-$pkgver.tar.xz)
13 sha256sums=('959af8f2f5a2761e7e498b61c9caf25ae963335031eae9972d999e9a0d97a228')
15 build() {
16   cd "$pkgname"-$pkgver
17   ./configure --prefix=/usr --sysconfdir=/etc \
18     --libexecdir=/usr/lib/cups-pk-helper
19   make
22 package() {
23   cd "$pkgname"-$pkgver
24   make DESTDIR="$pkgdir" install
26   # fix dbus policy location - --with-dbusdir doens't work
27   install -dm755 "${pkgdir}"/usr/share/dbus-1/system.d
28   mv "${pkgdir}"/etc/dbus-1/system.d/* "${pkgdir}"/usr/share/dbus-1/system.d
29   rm -rf "${pkgdir}"/etc/dbus-1