mirror of
https://github.com/tommytran732/pamac-flatpak
synced 2024-12-04 21:31:33 -05:00
Disable Fake GNOME-Software
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
9725f65f4a
commit
b3df307f71
30
PKGBUILD
30
PKGBUILD
@ -1,9 +1,6 @@
|
|||||||
# 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.4.2
|
pkgver=10.4.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
@ -23,28 +20,19 @@ source=("pamac-$pkgver.tar.gz::$url/-/archive/v$pkgver/pamac-v$pkgver.tar.gz")
|
|||||||
sha512sums=('8b5b2298e16bcfc6fbdfbf2e2cd77cb9cd769d9faa503dd8fec35c18f37b52589ffda670dc9299a8f4962f039ba870007b4601a2610ac0fc298f64a4f8e67eeb')
|
sha512sums=('8b5b2298e16bcfc6fbdfbf2e2cd77cb9cd769d9faa503dd8fec35c18f37b52589ffda670dc9299a8f4962f039ba870007b4601a2610ac0fc298f64a4f8e67eeb')
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$srcdir/pamac-v$pkgver"
|
|
||||||
# adjust version string
|
# adjust version string
|
||||||
sed -i -e "s|\"$_pkgfixver\"|\"$pkgver-$pkgrel\"|g" src/version.vala
|
sed -i -e "s|\"$_pkgfixver\"|\"$pkgver-$pkgrel\"|g" $srcdir/pamac-v$pkgver/src/version.vala
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/pamac-v$pkgver"
|
arch-meson --buildtype=release -Denable-fake-gnome-software=false $srcdir/pamac-v$pkgver build
|
||||||
mkdir -p builddir
|
meson compile -C build
|
||||||
cd builddir
|
}
|
||||||
meson --prefix=/usr --sysconfdir=/etc --buildtype=release -Denable-fake-gnome-software=true
|
|
||||||
# build
|
check() {
|
||||||
ninja
|
meson test -C build --print-errorlogs
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/pamac-v$pkgver/builddir"
|
meson install -C build --destdir "$pkgdir"
|
||||||
|
}
|
||||||
DESTDIR="$pkgdir" ninja install
|
|
||||||
# remove pamac-gnome-integration
|
|
||||||
rm "$pkgdir/usr/bin/gnome-software"
|
|
||||||
rm "$pkgdir/usr/share/applications/org.gnome.Software.desktop"
|
|
||||||
rm "$pkgdir/usr/share/dbus-1/services/org.gnome.Software.service"
|
|
||||||
|
|
||||||
}
|
|
||||||
# vim:set ts=2 sw=2 et:
|
|
Loading…
Reference in New Issue
Block a user