Commit 924d35ce authored by Strit's avatar Strit

updated to 7.3.5

parent 42521a91
# Maintainer: Guillaume Benoit <guillaume@manjaro.org>
pkgbase=pamac
pkgname=('pamac' 'pamac-tray-appindicator')
_pkgver=7.3.4
pkgver=7.3.4
pkgname=('pamac-common' 'pamac-cli' 'pamac-gtk' 'pamac-tray-appindicator')
_pkgver=7.3.5
pkgver=7.3.5
pkgrel=1
_commit=
pkgdesc="A Gtk3 frontend for libalpm"
pkgdesc="A Package Manager based on libalpm with AUR and Appstream support"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://gitlab.manjaro.org/applications/pamac"
license=('GPL3')
......@@ -16,9 +16,9 @@ depends=('glib2>=2.42' 'json-glib' 'libsoup' 'dbus-glib' 'polkit' 'vte3>=0.38' '
makedepends=('gettext' 'meson' 'vala>=0.36.6' 'libappindicator-gtk3' 'gobject-introspection')
options=(!emptydirs)
source=("pamac-$pkgver-$pkgrel.tar.gz::$url/-/archive/v$_pkgver/$pkgname-v$_pkgver.tar.gz")
source=("pamac-$pkgver-$pkgrel.tar.gz::$url/-/archive/v$pkgver/pamac-v$pkgver.tar.gz")
#"pamac-$pkgver-$pkgrel.tar.gz::$url/-/archive/$_commit/$pkgname-$_commit.tar.gz")
sha256sums=('14dff6fde59f2bc3e38dee85c2e7a4090fefd1b33b27a713819f4efb26a1460d')
sha256sums=('7fcb99133bf6490726e7c878ef3e465b4d098a62ca8e368a6ae64d8d4004ddf9')
prepare() {
#mv "$srcdir/pamac-$_commit" "$srcdir/pamac-v$_pkgver"
......@@ -39,26 +39,69 @@ build() {
ninja
}
package_pamac() {
optdepends=('pamac-tray-appindicator: tray icon for KDE')
package_pamac-common() {
depends=('glib2>=2.42' 'json-glib' 'libsoup' 'dbus-glib' 'polkit'
'libnotify' 'desktop-file-utils' 'pacman>=5.1' 'pacman<5.2' 'gnutls>=3.4'
'appstream-glib' 'archlinux-appstream-data' 'pacman-mirrors>=4.9.1' 'git')
backup=('etc/pamac.conf')
provides=("pamac=$pkgver")
conflicts=('pamac')
replaces=('pamac-aur')
install=pamac.install
conflicts=('pamac<=7.3.4-2' 'pamac-aur')
install=pamac-common.install
cd "$srcdir/pamac-v$_pkgver"
cd builddir
DESTDIR="$pkgdir" ninja install
# remove pamac-cli
rm "$pkgdir/usr/bin/pamac"
# remove pamac-tray-appindicator
rm "$pkgdir/usr/bin/pamac-tray-appindicator"
rm "$pkgdir/etc/xdg/autostart/pamac-tray-appindicator.desktop"
# remove pamac-tray
rm "$pkgdir/usr/bin/pamac-tray"
rm "$pkgdir/etc/xdg/autostart/pamac-tray.desktop"
# remove pamac-gtk
rm "$pkgdir/usr/share/vala/vapi/pamac-gtk.vapi"
rm "$pkgdir/usr/include/pamac-gtk.h"
rm "$pkgdir/usr/lib/libpamac-gtk.so"
rm "$pkgdir/usr/bin/pamac-installer"
rm "$pkgdir/usr/bin/pamac-manager"
rm -rf "$pkgdir/usr/share/applications"
rm "$pkgdir/usr/share/dbus-1/services/org.manjaro.pamac.manager.service"
rm -rf "$pkgdir/usr/share/gnome-shell"
}
package_pamac-cli() {
depends=('pamac-common')
conflicts=('pamac<=7.3.4-2' 'pamac-aur')
cd "$srcdir/pamac-v$_pkgver"
install -Dm755 "builddir/src/pamac" "$pkgdir/usr/bin/pamac"
}
package_pamac-gtk() {
depends=('pamac-cli' 'vte3>=0.38' 'gtk3>=3.22')
provides=("pamac=$pkgver-$pkgrel")
replaces=('pamac')
conflicts=('pamac' 'pamac-aur')
install=pamac-gtk.install
cd "$srcdir/pamac-v$_pkgver"
install -Dm755 "builddir/src/pamac-tray" "$pkgdir/usr/bin/pamac-tray"
install -Dm644 "data/applications/pamac-tray.desktop" "$pkgdir/etc/xdg/autostart/pamac-tray.desktop"
install -Dm644 "builddir/src/pamac-gtk.vapi" "$pkgdir/usr/share/vala/vapi/pamac-gtk.vapi"
install -Dm644 "builddir/src/pamac-gtk.h" "$pkgdir/usr/include/pamac-gtk.h"
install -Dm755 "builddir/src/libpamac-gtk.so" "$pkgdir/usr/lib/libpamac-gtk.so"
install -Dm755 "builddir/src/pamac-installer" "$pkgdir/usr/bin/pamac-installer"
install -Dm755 "builddir/src/pamac-manager" "$pkgdir/usr/bin/pamac-manager"
install -Dm644 "data/applications/org.manjaro.pamac.manager.desktop" "$pkgdir/usr/share/applications/org.manjaro.pamac.manager.desktop"
install -Dm644 "data/applications/pamac-installer.desktop" "$pkgdir/usr/share/applications/pamac-installer.desktop"
install -Dm644 "data/applications/pamac-manager.desktop" "$pkgdir/usr/share/applications/pamac-manager.desktop"
install -Dm644 "data/applications/pamac-updater.desktop" "$pkgdir/usr/share/applications/pamac-updater.desktop"
install -Dm644 "builddir/data/dbus/org.manjaro.pamac.manager.service" "$pkgdir/usr/share/dbus-1/services/org.manjaro.pamac.manager.service"
install -Dm644 "data/gnome-shell/org.manjaro.pamac.manager.search-provider.ini" "$pkgdir/usr/share/gnome-shell/search-providers/org.manjaro.pamac.manager.search-provider.ini"
mkdir -p "$pkgdir/usr/share/gnome-shell/extensions"
cp -r "data/gnome-shell/pamac-updates@manjaro.org" "$pkgdir/usr/share/gnome-shell/extensions"
}
package_pamac-tray-appindicator() {
pkgdesc="Tray icon using appindicator which fits better in KDE"
depends=('pamac' 'libappindicator-gtk3')
provides=("pamac-tray-appindicator=$pkgver")
conflicts=('pamac-tray-appindicator')
depends=('pamac-gtk' 'libappindicator-gtk3')
cd "$srcdir/pamac-v$_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"
......
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/
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'
# enable pamac extension
printf '==> Enable Pamac Updates Indicator via\n'
printf ' Gnome Tweak\n'
}
post_upgrade() {
if [[ ! "gsettings get org.gnome.shell enabled-extensions | grep 'pamac-updates'" ]]; then
# enable pamac extension
printf '==> Enable Pamac Updates Indicator via\n'
printf ' Gnome Tweak\n'
fi
}
post_remove() {
......@@ -26,3 +15,4 @@ post_remove() {
rm -f /etc/systemd/system/multi-user.target.wants/pamac-cleancache.timer
rm -f /etc/systemd/system/multi-user.target.wants/pamac-mirrorlist.timer
}
msg() {
ALL_OFF="\e[1;0m"
BOLD="\e[1;1m"
GREEN="${BOLD}\e[1;32m"
local mesg=$1; shift
printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
}
post_install() {
# restore old conf
PAMAC_NEW="$(date +%m%d%M%S)"
if [ "$(vercmp $2 7.3.5-1)" -lt 0 ]; then
if [ -f "/etc/pamac.conf.pacsave" ]; then
msg "You had an old /etc/pamac.conf.pacsave file. We restore it for you."
msg "You can find your new pamac.conf saved as \`/etc/pamac-new-${PAMAC_NEW}.conf\`"
mv /etc/pamac.conf /etc/pamac-new-${PAMAC_NEW}.conf
mv /etc/pamac.conf.pacsave /etc/pamac.conf
fi
fi
# enable pamac extension
printf '==> Enable Pamac Updates Indicator via\n'
printf ' Gnome Tweak\n'
}
post_upgrade() {
# restore old conf
PAMAC_NEW="$(date +%m%d%M%S)"
if [ "$(vercmp $2 7.3.5-1)" -lt 0 ]; then
if [ -f "/etc/pamac.conf.pacsave" ]; then
msg "You had an old /etc/pamac.conf.pacsave file. We restore it for you."
msg "You can find your new pamac.conf saved as \`/etc/pamac-new-${PAMAC_NEW}.conf\`"
mv /etc/pamac.conf /etc/pamac-new-${PAMAC_NEW}.conf
mv /etc/pamac.conf.pacsave /etc/pamac.conf
fi
fi
if [[ ! "gsettings get org.gnome.shell enabled-extensions | grep 'pamac-updates'" ]]; then
# enable pamac extension
printf '==> Enable Pamac Updates Indicator via\n'
printf ' Gnome Tweak\n'
fi
}
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