mirror of
https://github.com/tommytran732/pamac-flatpak-gnome
synced 2024-11-22 07:11:33 -05:00
Added GNOME support
This commit is contained in:
parent
b3145ebe1c
commit
3f2db5181e
8
.SRCINFO
8
.SRCINFO
@ -1,5 +1,5 @@
|
|||||||
pkgbase = pamac-flatpak
|
pkgbase = pamac-flatpak-gnome
|
||||||
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)
|
||||||
pkgver = 10.1.3
|
pkgver = 10.1.3
|
||||||
pkgrel = 3
|
pkgrel = 3
|
||||||
url = https://gitlab.manjaro.org/applications/pamac
|
url = https://gitlab.manjaro.org/applications/pamac
|
||||||
@ -32,8 +32,10 @@ pkgbase = pamac-flatpak
|
|||||||
conflicts = pamac-aur-git
|
conflicts = pamac-aur-git
|
||||||
conflicts = pamac-all
|
conflicts = pamac-all
|
||||||
conflicts = pamac-all-git
|
conflicts = pamac-all-git
|
||||||
|
conflicts = pamac-flatpak
|
||||||
|
conflicts = gnome-software
|
||||||
options = !emptydirs
|
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
|
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
|
sha256sums = 577c0dfca155af9f4a7537b6c09bd37958ea5b5724c187f03239b27bd3d5951a
|
||||||
|
|
||||||
pkgname = pamac-flatpak
|
pkgname = pamac-flatpak-gnome
|
||||||
|
18
PKGBUILD
18
PKGBUILD
@ -1,33 +1,25 @@
|
|||||||
# Maintainer: TommyTran732
|
# Maintainer: TommyTran732
|
||||||
# https://gitlab.manjaro.org/packages/extra/pamac
|
# 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
|
pkgname=pamac-flatpak
|
||||||
pkgver=10.1.3
|
pkgver=10.1.3
|
||||||
pkgrel=3
|
pkgrel=3
|
||||||
_pkgfixver=$pkgver
|
_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')
|
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
||||||
url="https://gitlab.manjaro.org/applications/pamac"
|
url="https://gitlab.manjaro.org/applications/pamac"
|
||||||
license=('GPL3')
|
license=('GPL3')
|
||||||
depends=('libnotify' 'libpamac-flatpak' 'libhandy')
|
depends=('libnotify' 'libpamac-flatpak' 'libhandy' 'libappindicator-gtk3')
|
||||||
optdepends=('polkit-gnome: needed for authentification in Cinnamon, Gnome')
|
optdepends=('polkit-gnome: needed for authentification in Cinnamon, Gnome')
|
||||||
makedepends=('gettext' 'itstool' 'vala>=0.45' 'meson' 'ninja' 'gobject-introspection' 'xorgproto' 'asciidoc')
|
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')
|
conflicts=('pamac' 'pamac-cli' 'pamac-classic' 'pamac-aur' 'pamac-aur-git' 'pamac-all' 'pamac-all-git' 'pamac-flatpak' 'gnome-software')
|
||||||
provides=('pamac')
|
provides=('pamac' 'gnome-software')
|
||||||
options=(!emptydirs)
|
options=(!emptydirs)
|
||||||
install=pamac.install
|
install=pamac.install
|
||||||
source=("pamac-$pkgver.tar.gz::$url/-/archive/v$pkgver/pamac-v$pkgver.tar.gz")
|
source=("pamac-$pkgver.tar.gz::$url/-/archive/v$pkgver/pamac-v$pkgver.tar.gz")
|
||||||
sha256sums=('577c0dfca155af9f4a7537b6c09bd37958ea5b5724c187f03239b27bd3d5951a')
|
sha256sums=('577c0dfca155af9f4a7537b6c09bd37958ea5b5724c187f03239b27bd3d5951a')
|
||||||
|
|
||||||
if [ "${ENABLE_APPINDICATOR}" = 1 ]; then
|
|
||||||
depends+=('libappindicator-gtk3')
|
|
||||||
define_meson+=' -Denable-appindicator=true'
|
|
||||||
fi
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$srcdir/pamac-v$pkgver"
|
cd "$srcdir/pamac-v$pkgver"
|
||||||
# adjust version string
|
# adjust version string
|
||||||
@ -38,7 +30,7 @@ build() {
|
|||||||
cd "$srcdir/pamac-v$pkgver"
|
cd "$srcdir/pamac-v$pkgver"
|
||||||
mkdir -p builddir
|
mkdir -p builddir
|
||||||
cd 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
|
ninja
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
A Gtk3 frontend for libalpm (with AUR, Flatpak and AppIndicator support)
|
A Gtk3 frontend for libalpm (with AUR, Flatpak and AppIndicator support)
|
||||||
|
|
||||||
# Attribution
|
# 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
|
# Notes
|
||||||
The Flathub Beta repository is enable by default. <br >
|
The Flathub Beta repository is enable by default. <br >
|
||||||
|
@ -2,7 +2,7 @@ post_install() {
|
|||||||
# enable flatpak repo
|
# enable flatpak repo
|
||||||
if [ -f /usr/bin/flatpak ]; then
|
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 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
|
fi
|
||||||
# enable systemd timers
|
# 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-cleancache.timer /etc/systemd/system/multi-user.target.wants
|
||||||
|
Loading…
Reference in New Issue
Block a user