1
0
mirror of https://github.com/tommytran732/pamac-flatpak-gnome synced 2024-12-22 06:01:34 -05:00

Added GNOME support

This commit is contained in:
TommyTran732 2021-08-18 04:10:33 -04:00
parent b3145ebe1c
commit 3f2db5181e
No known key found for this signature in database
GPG Key ID: 8825C3851DC29C20
4 changed files with 14 additions and 20 deletions

View File

@ -1,5 +1,5 @@
pkgbase = pamac-flatpak
pkgdesc = A Gtk3 frontend for libalpm (with AUR, Flatpak and AppIndicator support)
pkgbase = pamac-flatpak-gnome
pkgdesc = A Gtk3 frontend for libalpm (with AUR, Flatpak, AppIndicator support, and GNOME integration)
pkgver = 10.1.3
pkgrel = 3
url = https://gitlab.manjaro.org/applications/pamac
@ -30,10 +30,12 @@ pkgbase = pamac-flatpak
conflicts = pamac-classic
conflicts = pamac-aur
conflicts = pamac-aur-git
conflicts = pamac-all
conflicts = pamac-all-git
conflicts = pamac-all
conflicts = pamac-all-git
conflicts = pamac-flatpak
conflicts = gnome-software
options = !emptydirs
source = pamac-10.1.3.tar.gz::https://gitlab.manjaro.org/applications/pamac/-/archive/v10.1.3/pamac-v10.1.3.tar.gz
sha256sums = 577c0dfca155af9f4a7537b6c09bd37958ea5b5724c187f03239b27bd3d5951a
pkgname = pamac-flatpak
pkgname = pamac-flatpak-gnome

View File

@ -1,33 +1,25 @@
# Maintainer: TommyTran732
# https://gitlab.manjaro.org/packages/extra/pamac
#Set this flag to 0 if you want to use pamac-tray-icon-plasma
ENABLE_APPINDICATOR=1
pkgname=pamac-flatpak
pkgver=10.1.3
pkgrel=3
_pkgfixver=$pkgver
pkgdesc="A Gtk3 frontend for libalpm (with AUR, Flatpak and AppIndicator support)"
pkgdesc="A Gtk3 frontend for libalpm (with AUR, Flatpak, AppIndicator support, and GNOME integration)"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://gitlab.manjaro.org/applications/pamac"
license=('GPL3')
depends=('libnotify' 'libpamac-flatpak' 'libhandy')
depends=('libnotify' 'libpamac-flatpak' 'libhandy' 'libappindicator-gtk3')
optdepends=('polkit-gnome: needed for authentification in Cinnamon, Gnome')
makedepends=('gettext' 'itstool' 'vala>=0.45' 'meson' 'ninja' 'gobject-introspection' 'xorgproto' 'asciidoc')
conflicts=('pamac' 'pamac-cli' 'pamac-classic' 'pamac-aur' 'pamac-aur-git' 'pamac-all' 'pamac-all-git' 'pamac-flatpak-gnome')
provides=('pamac')
conflicts=('pamac' 'pamac-cli' 'pamac-classic' 'pamac-aur' 'pamac-aur-git' 'pamac-all' 'pamac-all-git' 'pamac-flatpak' 'gnome-software')
provides=('pamac' 'gnome-software')
options=(!emptydirs)
install=pamac.install
source=("pamac-$pkgver.tar.gz::$url/-/archive/v$pkgver/pamac-v$pkgver.tar.gz")
sha256sums=('577c0dfca155af9f4a7537b6c09bd37958ea5b5724c187f03239b27bd3d5951a')
if [ "${ENABLE_APPINDICATOR}" = 1 ]; then
depends+=('libappindicator-gtk3')
define_meson+=' -Denable-appindicator=true'
fi
prepare() {
cd "$srcdir/pamac-v$pkgver"
# adjust version string
@ -38,7 +30,7 @@ build() {
cd "$srcdir/pamac-v$pkgver"
mkdir -p builddir
cd builddir
meson --prefix=/usr --sysconfdir=/etc -Denable-flatpak=true $define_meson --buildtype=release
meson --prefix=/usr --sysconfdir=/etc -Denable-flatpak=true -Denable-appindicator=true -Denable-fake-gnome-software=true --buildtype=release
ninja
}

View File

@ -2,7 +2,7 @@
A Gtk3 frontend for libalpm (with AUR, Flatpak and AppIndicator support)
# Attribution
This package is a modified version of [pamac-all](https://aur.archlinux.org/packages/pamac-all) with Snapd removed. <br >
This package is a modified version of [pamac-all](https://aur.archlinux.org/packages/pamac-all) with Snapd removed and added GNOME integration. <br >
# Notes
The Flathub Beta repository is enable by default. <br >

View File

@ -2,7 +2,7 @@ post_install() {
# enable flatpak repo
if [ -f /usr/bin/flatpak ]; then
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --if-not-exists flathub-beta https://flathub.org/repo-beta/flathub-beta.flatpakrepo
flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
fi
# enable systemd timers
ln -sf /usr/lib/systemd/system/pamac-cleancache.timer /etc/systemd/system/multi-user.target.wants