summaryrefslogtreecommitdiffstats
path: root/packagekit/Pkgfile
blob: 19e75a95612ca0cf4dd0009e5a1676d94a03efe4 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Description: Système d'installation et de mise à jour de paquets
# URL: http://www.packagekit.org/
# Maintainer: NuTyX core team
# Packager: piernov <piernov@piernov.org>
# Depends on: glib, gtk3, dbus, dbus-glib, udev, networkmanager, polkit
# Run on: glib,gtk3,dbus,dbus-glib,udev,networkmanager,polkit

name=packagekit
_name=PackageKit
version=0.8.1
release=1
source=(http://www.packagekit.org/releases/${_name}-$version.tar.xz
	NuTyX.patch)

build() {
	cd ${_name}-$version

	sed -i 's@python @python2 @' 'lib/python/packagekit/Makefile.in'
	sed -i 's@bin/python@bin/python2@' 'lib/python/packagekit/'*.py
	export PYTHON=/usr/bin/python2

	patch -p0 < ../NuTyX.patch
	autoreconf -fi
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-qt \
		--enable-networkmanager \
		--enable-systemd \
		--disable-local \
		--enable-browser-plugin \
		--enable-gstreamer-plugin \
		--enable-gtk-module \
		--disable-schemas-compile \
		--enable-command-not-found \
		--enable-cron \
		--enable-debuginfo-install \
		--enable-device-rebind \
		--enable-pm-utils \
		--enable-systemd-updates \
		--enable-pkg-get \
		--with-mozilla-plugin-dir=/usr/lib/firefox/plugins \
		--with-systemdsystemunitdir=/usr/lib/systemd/system \
		--with-security-framework=polkit \
		--with-default-backend=pkg-get
	make
	make DESTDIR=$PKG install
}