blob: 583c0c1312e55c2d4baa368b96a37f6415e5e78a (
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
|
# Maintainer: ilovemikael <itsmeguys2247 at gmail dot com>
# Submitter: nontlikeuname
pkgname=meson-git
pkgver=1.10.0.r79.4a9075b86
pkgrel=1
pkgdesc="SCons-like build system that uses python as a front-end language and Ninja as a building backend"
arch=(any)
url="http://mesonbuild.com/"
license=(Apache-2.0)
depends=(
bash
ninja
python
python-tqdm)
makedepends=(
git
python-aiohttp
python-build
python-installer
python-setuptools
python-strictyaml
python-wheel)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/mesonbuild/meson'
'arch-meson')
b2sums=('SKIP'
'f1b61b7e56e1ebde3dba2ee4b5fb45ef35d6c9f27dc5631fe7dc25bd97a39672a8f96e4b2c3055580e6c6dffa48575d4fab9e6ca2e5416234ea3dc8765c30955')
pkgver() {
cd meson
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd meson
python -m build --wheel --no-isolation
}
package() {
cd meson
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
for _f in data/syntax-highlighting/vim/*/*; do
install -Dt "${pkgdir}/usr/share/vim/vimfiles/$(basename "$(dirname "$_f")")" -m644 "$_f"
done
install -Dt "${pkgdir}/usr/share/zsh/site-functions" -m644 data/shell-completions/zsh/*
# Arch packaging helper
install -D ../arch-meson -t "${pkgdir}/usr/bin"
}
|