blob: 94b78cbb1449774e9859da2a14d692d7fe89bd81 (
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
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=meson
pkgver=0.51.2
pkgrel=0
pkgdesc="Fast and user friendly build system"
url="https://mesonbuild.com"
arch="noarch"
license="Apache-2.0"
depends="ninja py3-setuptools python3"
subpackages="$pkgname-doc $pkgname-vim::noarch"
source="https://github.com/mesonbuild/meson/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"
build() {
cd "$builddir"
python3 setup.py build
}
check() {
cd "$builddir"
python3 setup.py check
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
vim() {
pkgdesc="$pkgdesc (vim support)"
install_if="vim $pkgname=$pkgver-r$pkgrel"
cd "$builddir"
for kind in ftdetect ftplugin indent syntax
do
mkdir -p "$subpkgdir"/usr/share/vim/vimfiles/$kind
install -Dm644 \
"$builddir"/data/syntax-highlighting/vim/$kind/meson.vim \
"$subpkgdir"/usr/share/vim/vimfiles/$kind/meson.vim
done
}
sha512sums="5d6bc5c59c026b67d065b28a5ce8c7901ffb9663d3cb1609ef1714ace50e3b1e0fc116466a34ba5ae8dbfb2337b7848008f3d865832ea537422221f1a6793ddd meson-0.51.2.tar.gz"
|