mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 02:27:13 +08:00
98 lines
3.1 KiB
Bash
98 lines
3.1 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer: Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
pkgbase='packagekit'
|
|
pkgname=('packagekit' 'packagekit-qt2')
|
|
pkgver=0.7.1
|
|
pkgrel=5
|
|
pkgdesc="A system designed to make installation and updates of packages easier."
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.packagekit.org"
|
|
license=('GPL')
|
|
makedepends=('dbus-glib' 'gobject-introspection' 'intltool'
|
|
'networkmanager' 'pacman' 'pm-utils' 'polkit' 'python2' 'qt'
|
|
'shared-mime-info' 'sqlite3' 'udev' 'automoc4')
|
|
options=('!libtool')
|
|
source=("http://www.packagekit.org/releases/PackageKit-$pkgver.tar.xz"
|
|
'alpm.patch'
|
|
'Makefile.diff'
|
|
'use-categories.patch'
|
|
'groups.patch')
|
|
sha256sums=('fc20a864cfbf53e83f7f95ccafab08ac1a7cd76a9413839f4539c7c6d4a99210'
|
|
'397b0007c4c689c5c2ef48dd807ad3c60d97061ccf4ba49046b00ae5e91fbd9e'
|
|
'0e6dbba9a6fa3adc004baaf24605bae9c5de1b408e24768e4aabbe12fda55dce'
|
|
'645731060d23d1890b56018a16bb4a574c82bf9d2066f4f93d6aa27461e77dc3'
|
|
'5ea517ad96557a6c2c6d9b91aa331aff0b3db7ddfdd9b20b698a819b014fe45a')
|
|
|
|
build() {
|
|
cd "$srcdir/PackageKit-$pkgver"
|
|
|
|
patch -Np1 -i "$srcdir/alpm.patch"
|
|
patch -Np1 -i "$srcdir/Makefile.diff"
|
|
patch -Np1 -i "$srcdir/use-categories.patch"
|
|
patch -Np1 -i "$srcdir/groups.patch"
|
|
|
|
|
|
sed -i 's@SUBDIRS = test@SUBDIRS =@' 'backends/Makefile.in'
|
|
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
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--libexecdir=/usr/lib/PackageKit \
|
|
--disable-static \
|
|
--disable-gtk-doc \
|
|
--disable-tests \
|
|
--disable-local \
|
|
--disable-browser-plugin \
|
|
--disable-gstreamer-plugin \
|
|
--disable-gtk-module \
|
|
--disable-command-not-found \
|
|
--disable-cron \
|
|
--disable-debuginfo-install \
|
|
--enable-pm-utils \
|
|
--disable-dummy \
|
|
--enable-alpm \
|
|
--with-default-backend=alpm
|
|
make -s
|
|
}
|
|
|
|
package_packagekit() {
|
|
backup=('var/lib/PackageKit/transactions.db'
|
|
'etc/PackageKit/alpm.d/pacman.conf'
|
|
'etc/PackageKit/alpm.d/repos.list')
|
|
depends=('dbus-glib' 'pacman>=3.5.0' 'pacman<3.6.0' 'polkit'
|
|
'shared-mime-info' 'sqlite3' 'udev' 'consolekit')
|
|
optdepends=('networkmanager')
|
|
install='packagekit.install'
|
|
cd "$srcdir/PackageKit-$pkgver"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
rm -rf "$pkgdir/usr/include/PackageKit/packagekit-qt2"*
|
|
rm -rf "$pkgdir/usr/lib/libpackagekit-qt2"*
|
|
rm -rf "$pkgdir/usr/lib/pkgconfig/packagekit-qt2"*
|
|
rm -rf "$pkgdir/usr/lib/cmake"
|
|
|
|
rm -rf "$pkgdir/usr/lib/python"*
|
|
rm -rf "$pkgdir/usr/share/PackageKit/website"
|
|
|
|
mv "$pkgdir/etc/bash_completion.d/pk-completion.bash" \
|
|
"$pkgdir/etc/bash_completion.d/pkcon"
|
|
touch "$pkgdir/var/log/PackageKit"
|
|
}
|
|
|
|
package_packagekit-qt2() {
|
|
depends=('packagekit' 'qt')
|
|
pkgdesc=('Qt bindings for PackageKit')
|
|
|
|
cd "$srcdir/PackageKit-$pkgver/lib/packagekit-qt2"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|