blob: d9071ebc298509076c539b8d5416b7cf34b5d139 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: Zeph <zeph33@gmail.com>
# Based on the PKGBUILD created by Zeph <zeph33@gmail.com>
pkgname=('pamac-aur-git' 'pamac-aur-tray-appindicator-git')
_pkgname=pamac
pkgver=v6.2.3
_pkgver=6.2
pkgrel=1
pkgdesc="A Gtk3 frontend for libalpm - git version"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/manjaro/pamac"
license=('GPL3')
depends=('dbus-glib' 'polkit' 'vte3>=0.38' 'libnotify' 'pacman>=5.0' 'pacman<5.1' 'appstream-glib' 'archlinux-appstream-data' 'libappindicator-gtk3')
optdepends=('polkit-gnome: needed for authentification in Cinnamon, Gnome'
'lxsession: needed for authentification in Xfce, LXDE etc.'
'pamac-aur-tray-appindicator-git: tray icon for KDE')
makedepends=('gettext' 'itstool' 'vala>=0.36' 'meson' 'ninja')
options=(!emptydirs)
source=(git+https://github.com/manjaro/pamac.git)
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
# adjust version string
cd "$_pkgname"
sed -i -e "s|\"$_pkgver\"|\"$pkgver-$pkgrel\"|g" src/manager_window.vala
# patches here
}
build() {
cd "$_pkgname"
mkdir -p builddir
cd builddir
meson --prefix=/usr --sysconfdir=/etc -Denable-appindicator=true
# build
ninja
}
package_pamac-aur-git() {
backup=('etc/pamac.conf')
replaces=('pamac-aur')
install=pamac.install
cd "$_pkgname"
cd builddir
DESTDIR="$pkgdir" ninja install
# enable systemd timer
mkdir -p "$pkgdir/etc/systemd/system/multi-user.target.wants"
ln -sf "/usr/lib/systemd/system/pamac-cleancache.timer" "$pkgdir/etc/systemd/system/multi-user.target.wants"
# removed pamac-mirrorlist-timer, useless for Archlinux
# remove pamac-tray-appindicator
rm "$pkgdir/usr/bin/pamac-tray-appindicator"
rm "$pkgdir/etc/xdg/autostart/pamac-tray-appindicator.desktop"
}
package_pamac-aur-tray-appindicator-git() {
pkgdesc="Tray icon using appindicator which feets better in KDE - git version"
depends=('pamac-aur-git' 'libappindicator-gtk3')
cd "$_pkgname"
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:
|