summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 92be988ae4fff638671448d6ad4115e328f6a374 (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
# Maintainer: Adrián Pérez de Castro <aperez@igalia.com>
pkgname=myrddin
pkgver=0.3.1
pkgrel=2
pkgdesc='Compiler and tools for the Myrddin programming language.'
arch=(i686 x86_64)
conflicts=('myrddin-git')
license=(MIT)
depends=(glibc)
url=https://myrlang.org/
source=("$url/releases/$pkgname-$pkgver.tar.xz")
sha512sums=('99f8d933572b2e3750103c1d801a29575971242c347c7fb042a5114d2cf3fe7cca2b927190ba13728b46573e00f414015cc0ef04bca8db3c67427261600ddd95')

prepare() {
	sed -i '/^CFLAGS/s,-O0,,' mc/mk/c.mk
}

build() {
	cd mc
	./configure --prefix=/usr
	make bootstrap
	make
}

check () {
	make -C mc check
}

package() {
	cd mc
	make DESTDIR="$pkgdir" install

	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"

	cd support/vim/
	for dir in *; do
		install -t "${pkgdir}/usr/share/vim/vimfiles/${dir}" -Dm644 "${dir}"/*.vim
	done
}