blob: 6eb8ba82fbfd1d1ea57c3792c6e5e7fa22b6cfab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>
pkgname=muon-meson
pkgver=0.3.1
pkgrel=3
pkgdesc="meson implementation in C"
arch=(x86_64 pentium4 i686 i486)
url="https://muon.build"
license=(GPL3)
source=(
"$url/releases/v$pkgver/muon-v$pkgver.tar.gz"
"arch-muon")
sha256sums=('45f6ad728946a0788188004e3a88a77a7d07b48525ce0646430589d1db4c832e'
'4e507d5b129cd7de05aca972504ab06c2353b145e7378d15aa75b7d4b1b252e8')
#depends=(pkgconf curl libarchive)
depends=(pkgconf)
#makedepends=(ninja python-yaml scdoc)
makedepends=(ninja)
checkdepends=(git)
provides=(muon)
build() {
cd "muon-v$pkgver"
rm -rf build*
msg2 "Building stage 1 (bootstrap)"
./bootstrap.sh build-stage1
msg2 "Building stage 2 (muon from bootstrap)"
build-stage1/muon setup \
-D docs=disabled \
-D libpkgconf=enabled \
-D libcurl=disabled \
-D libarchive=disabled \
build-stage2
ninja -C build-stage2
msg2 "Building stage 3 (muon from muon)"
build-stage2/muon setup \
-D prefix=/usr \
-D b_lto=false \
-D b_pie=false \
-D docs=disabled \
-D libpkgconf=enabled \
-D libcurl=disabled \
-D libarchive=disabled \
build
ninja -C build
}
check() {
cd "muon-v$pkgver/build"
./muon test || true
}
package() {
cd "muon-v$pkgver/build"
DESTDIR="$pkgdir" ./muon install
install -Dm775 "$srcdir/arch-muon" "$pkgdir/usr/bin/arch-muon"
# remove this as the `meson` package also provides it
# muon only has a `docs` option right now, so
# downloading/generating/deleting is the only option :/
# rm "$pkgdir"/usr/share/man/man3/meson-reference.3
}
|