Received: from confino.investici.org (confino.investici.org [212.103.72.250]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 042E7782B2D for <~alpine/aports@lists.alpinelinux.org>; Tue, 17 Aug 2021 22:56:51 +0000 (UTC) Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4Gq5xs0vmbz10wf; Tue, 17 Aug 2021 22:56:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paranoici.org; s=stigmate; t=1629241009; bh=EzZaVvSMR8gQTUrddLBsQwW+XXiPg7a4N0ROyYkdU5Q=; h=From:To:Cc:Subject:Date:From; b=eydf3YAbpehY1tSjE2Yuu7mANN03qhOF6Ox3zjRQVRe2JEOTxuwQntA/NIaYgdGvI RRJ+dNZNMYLvGnPL50KYP9SwGSfdhBIsGkCIudLIxuF2KOtQ1kwoxgcqTy8VzHyUgq 1YyIUcA0tTii3h+WKB+pj58rtOEBNgEfNoeCr4dI= Received: from [212.103.72.250] (mx1.investici.org [212.103.72.250]) (Authenticated sender: kikoodx@paranoici.org) by localhost (Postfix) with ESMTPSA id 4Gq5xr6rWtz10wd; Tue, 17 Aug 2021 22:56:48 +0000 (UTC) From: KikooDX To: ~alpine/aports@lists.alpinelinux.org Cc: KikooDX Subject: [PATCH v3] testing/muon: new aport Date: Wed, 18 Aug 2021 00:56:39 +0200 Message-Id: <20210817225639.5412-1-kikoodx@paranoici.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://sr.ht/~lattis/muon meson implementation in C --- Érico Rolim noticed than the project homepage is on sr.ht I rectified this and added a separated _giturl package due to the fact than there is, to my knowledge, no way to download a .tar.gz from a hash that's not tagged on git.sr.ht. Until the first release, I plan to follow the GitHub mirror. testing/muon/APKBUILD | 34 ++++++++++++++++++++++++++++++++ testing/muon/fix-bootstrap.patch | 19 ++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 testing/muon/APKBUILD create mode 100644 testing/muon/fix-bootstrap.patch diff --git a/testing/muon/APKBUILD b/testing/muon/APKBUILD new file mode 100644 index 0000000000..2dfe2abd17 --- /dev/null +++ b/testing/muon/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: KikooDX +# Maintainer: KikooDX +pkgname=muon +pkgver=0_git20210812 +pkgrel=0 +pkgdesc="meson implementation in C" +options="!check" # broken test suite +url="https://sr.ht/~lattis/muon" +_giturl="https://github.com/annacrombie/muon" +arch="all" +license="GPL-3.0-only" +depends="samurai" +makedepends="pkgconf-dev" +subpackages="$pkgname-doc" +_gitrev=f4ee369d4a90ca597aaf63d99da9355266eba83b +source="$pkgname-$_gitrev.tar.gz::$_giturl/archive/$_gitrev.tar.gz + fix-bootstrap.patch" +builddir="$srcdir/$pkgname-$_gitrev" + +build() { + ./bootstrap.sh bootstrap + bootstrap/muon setup build + ninja -C build +} + +package() { + install -Dm711 build/muon "$pkgdir"/usr/bin/muon + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +sha512sums=" +34a76775e137687e345426d3d7dd415fafe5f053d1881b8a2f384ebe49046d9b338c210f3eb1544fddd2dd912427a5d75fb2d8a5be269e3b3e9c95cf5e622e38 muon-f4ee369d4a90ca597aaf63d99da9355266eba83b.tar.gz +937d8fffec20b5244d7234738eda5baba8a351bff2a6815ec71c30c08180d63febcb6a2adc9a1bd495481d2384cf04c01ab8aa5abc121b76d344a559e4b65569 fix-bootstrap.patch +" diff --git a/testing/muon/fix-bootstrap.patch b/testing/muon/fix-bootstrap.patch new file mode 100644 index 0000000000..db19cbeec4 --- /dev/null +++ b/testing/muon/fix-bootstrap.patch @@ -0,0 +1,19 @@ +diff '--color=auto' -Nurp a/bootstrap.sh b/bootstrap.sh +--- a/bootstrap.sh 2021-08-17 03:11:15.990682670 +0200 ++++ b/bootstrap.sh 2021-08-17 03:11:33.563754987 +0200 +@@ -11,7 +11,6 @@ dir="$1" + mkdir -p "$dir" + + cat \ +- platform/dirs.c \ + src/coerce.c \ + src/compilers.c \ + src/data/bucket_array.c \ +@@ -59,6 +58,7 @@ cat \ + src/main.c \ + src/opts.c \ + src/output/output.c \ ++ src/platform/dirs.c \ + src/platform/filesystem.c \ + src/platform/mem.c \ + src/platform/path.c \ -- 2.32.0