1
0
mirror of https://github.com/tommytran732/pamac-flatpak-gnome synced 2024-11-21 23:31:33 -05:00
pamac-flatpak-gnome/PKGBUILD
2021-08-18 04:10:33 -04:00

40 lines
1.4 KiB
Bash

# Maintainer: TommyTran732
# https://gitlab.manjaro.org/packages/extra/pamac
pkgname=pamac-flatpak
pkgver=10.1.3
pkgrel=3
_pkgfixver=$pkgver
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' '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-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')
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 --prefix=/usr --sysconfdir=/etc -Denable-flatpak=true -Denable-appindicator=true -Denable-fake-gnome-software=true --buildtype=release
ninja
}
package() {
cd "$srcdir/pamac-v$pkgver/builddir"
DESTDIR="$pkgdir" ninja install
}