Commit a9d7b8c3 authored by Strit's avatar Strit

import from github

parents
# Maintainer: Guillaume Benoit <guillaume@manjaro.org>
pkgbase=pamac
pkgname=('pamac' 'pamac-tray-appindicator')
_pkgver=6.3.3
pkgver=6.3.92
pkgrel=1
pkgdesc="A Gtk3 frontend for libalpm"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://github.com/manjaro/pamac"
license=('GPL3')
depends=('glib2>=2.42' 'json-glib' 'libsoup' 'dbus-glib' 'polkit' 'vte3>=0.38' 'gtk3>=3.22'
'libnotify' 'desktop-file-utils' 'pacman>=5.1' 'pacman<5.2' 'gnutls>=3.4'
'appstream-glib' 'archlinux-appstream-data' 'pacman-mirrorlist')
makedepends=('gettext' 'meson' 'vala>=0.36.6' 'libappindicator-gtk3' 'git')
options=(!emptydirs)
source=("pamac-$_pkgver-$pkgrel.tar.gz::$url/archive/v$_pkgver.tar.gz"
"git-$pkgver-$pkgrel.patch::https://github.com/manjaro/pamac/compare/v$_pkgver...master.patch"
)
sha256sums=('b4e62b9fb602ca4c2ac30b829200484d4177a9cf944ab86c5eaaf583509e4766'
'901941eaa835ef175b3f2bab7c212ea071096c4389e32da9b4cc4c6c77ce04ab')
prepare() {
cd "$srcdir/pamac-$_pkgver"
# patches here
patch -p1 -i "$srcdir/git-$pkgver-$pkgrel.patch"
# adjust version string
sed -i -e "s|\"$_pkgver\"|\"$pkgver-$pkgrel\"|g" src/manager_window.vala
}
build() {
cd "$srcdir/pamac-$_pkgver"
mkdir -p builddir
cd builddir
meson --prefix=/usr --sysconfdir=/etc -Denable-appindicator=true
# build
ninja
}
package_pamac() {
optdepends=('pamac-tray-appindicator: tray icon for KDE')
backup=('etc/pamac.conf')
replaces=('pamac-aur')
install=pamac.install
cd "$srcdir/pamac-$_pkgver"
cd builddir
DESTDIR="$pkgdir" ninja install
# remove pamac-tray-appindicator
rm "$pkgdir/usr/bin/pamac-tray-appindicator"
rm "$pkgdir/etc/xdg/autostart/pamac-tray-appindicator.desktop"
}
package_pamac-tray-appindicator() {
pkgdesc="Tray icon using appindicator which feets better in KDE"
depends=('pamac' 'libappindicator-gtk3')
cd "$srcdir/pamac-$_pkgver"
install -Dm755 "builddir/src/pamac-tray-appindicator" "$pkgdir/usr/bin/pamac-tray-appindicator"
install -Dm644 "data/applications/pamac-tray-appindicator.desktop" "$pkgdir/etc/xdg/autostart/pamac-tray-appindicator.desktop"
}
# vim:set ts=2 sw=2 et:
post_install() {
# enable systemd timers
ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/multi-user.target.wants
ln -sf /usr/lib/systemd/system/pamac-mirrorlist.timer /etc/systemd/system/multi-user.target.wants
# polkit agent
printf '==> An authentication agent is required\n'
printf ' Cinnamon, Deepin, GNOME, GNOME Flashback, KDE, LXDE, LXQt, MATE and Xfce\n'
printf ' have an authentication agent already.\n'
printf ' See https://wiki.archlinux.org/index.php/Polkit#Authentication_agents\n'
printf ' for other desktop environments.\n'
}
post_remove() {
# disable systemd timers
rm -f /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer
rm -f /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment