Skip to content

Instantly share code, notes, and snippets.

@aperezdc
Last active December 21, 2021 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aperezdc/6a3ef049d7c219311e23fb6d56aa512b to your computer and use it in GitHub Desktop.
Save aperezdc/6a3ef049d7c219311e23fb6d56aa512b to your computer and use it in GitHub Desktop.
Make AUR package meson-muon-git bootstrap instead of using Ninja
commit be9c283f963b844bd71d9735ac1707ec4c28395e
Author: Adrian Perez de Castro <aperez@igalia.com>
Date: Sun Nov 14 23:04:49 2021 +0200
Local changes
diff --git a/PKGBUILD b/PKGBUILD
index 8b663ef..8a73fcd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,25 @@
# Maintainer: fossdd <fossdd@tutanota.com>
pkgname=muon-meson-git
_pkgname=${pkgname%-meson-git}
-pkgver=r322.2a59d24
+pkgver=r1147.f1b8a0b
pkgrel=1
pkgdesc='meson implementation in C'
url='https://sr.ht/~lattis/muon'
license=(GPL-3.0)
arch=(x86_64)
-depends=(pkgconf curl zlib)
-makedepends=(git meson)
+depends=(pkgconf curl zlib libarchive)
+makedepends=(git samurai)
conflicts=()
provides=(muon)
-source=("git+https://git.sr.ht/~lattis/muon")
-sha256sums=('SKIP')
+source=("git+https://git.sr.ht/~lattis/muon"
+ "https://mochiro.moe/wrap/samurai.tar.gz")
+sha256sums=('SKIP'
+ '978b42325e92c7268c12e950e770d9cd8401875872ca130bd8dbe247477613f9')
+
+prepare () {
+ cd "${_pkgname}/subprojects"
+ ln -snf "${srcdir}/samurai" samurai
+}
pkgver() {
cd "${_pkgname}"
@@ -24,8 +31,15 @@ pkgver() {
build() {
cd "$_pkgname"
- meson build
- ninja -C build
+ ./bootstrap.sh build-boot
+ ./build-boot/muon setup \
+ -Dlibcurl=enabled \
+ -Dlibarchive=enabled \
+ -Dlibpkgconf=enabled \
+ -Dsamurai=enabled \
+ -Dstatic=true \
+ build
+ samu -C build
}
package() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment