blob: 8fbeb36ae83b3a6888d512404afd715e1bee40b8 (
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
73
74
75
76
77
78
79
80
81
82
83
|
# Contributor: Zeph <zeph33@gmail.com>
# Maintainer: Librewish <librewish@gmail.com>
# https://gitlab.manjaro.org/packages/extra/pamac
ENABLE_FLATPAK=1
ENABLE_SNAPD=1
ENABLE_APPINDICATOR=1
ENABLE_GNOME=0
pkgname=pamac-all
pkgver=10.0.5
pkgrel=1
_pkgfixver=$pkgver
pkgdesc="A Gtk3 frontend for libalpm (everything in one package - snap, flatpak, appindicator)"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://gitlab.manjaro.org/applications/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.2' 'gnutls>=3.4' 'git'
'appstream-glib' 'archlinux-appstream-data')
optdepends=('polkit-gnome: needed for authentification in Cinnamon, Gnome')
makedepends=('gettext' 'itstool' 'vala>=0.45' 'meson' 'ninja' 'gobject-introspection' 'xorgproto' 'asciidoc')
backup=('etc/pamac.conf')
conflicts=('pamac' 'pamac-gtk' 'pamac-cli' 'pamac-common' 'pamac-aur' 'pamac-aur-git')
provides=("pamac" "pamac-aur" "pamac-aur-git")
options=(!emptydirs)
install=pamac.install
source=(
"pamac-$pkgver.tar.gz::$url/-/archive/v$pkgver/pamac-v$pkgver.tar.gz"
# "https://gitlab.manjaro.org/applications/pamac/-/commit/83ac80d7.patch"
)
sha256sums=('3650d0a2d9633d27ee465ecaaaf33fa1255b4d44d1034433b2a2f16d963521b0')
define_meson=''
if [ "${ENABLE_FLATPAK}" = 1 ]; then
depends+=('flatpak')
define_meson+=' -Denable-flatpak=true'
provides+=('pamac-flatpak-plugin')
conflicts+=('pamac-flatpak-plugin')
fi
if [ "${ENABLE_SNAPD}" = 1 ]; then
depends+=('snapd' 'snapd-glib')
define_meson+=' -Denable-snap=true'
provides+=('pamac-snap-plugin')
conflicts+=('pamac-snap-plugin')
fi
if [ "${ENABLE_APPINDICATOR}" = 1 ]; then
depends+=('libappindicator-gtk3')
define_meson+=' -Denable-appindicator=true'
provides+=('pamac-tray-appindicator' )
conflicts+=('pamac-tray-appindicator' 'pamac-aur-tray-appindicator-git')
fi
if [ "${ENABLE_GNOME}" = 1 ]; then
define_meson+=' -Denable-fake-gnome-software=true'
provides+=("pamac-gnome-integration" 'gnome-software')
conflicts+=("pamac-gnome-integration" 'gnome-software')
fi
prepare() {
cd "$srcdir/pamac-v$pkgver"
# adjust version string
sed -i -e "s|\"$_pkgfixver\"|\"$pkgver-$pkgrel\"|g" src/version.vala
}
build() {
cd "$srcdir/pamac-v$pkgver"
mkdir -p builddir
cd builddir
meson --buildtype=release \
--prefix=/usr \
--sysconfdir=/etc $define_meson
# build
ninja
}
package() {
cd "$srcdir/pamac-v$pkgver/builddir"
DESTDIR="$pkgdir" ninja install
}
# vim:set ts=2 sw=2 et:
|