blob: 7b0b8a45c1c3e322f5459a9152c097a87d8bab2e (
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
|
# Maintainer: Jef Roosens
# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
_pkgname=vlang
pkgname=vlang-bin
pkgver=0.4.9
pkgrel=2
pkgdesc='Simple, fast, safe, compiled language for developing maintainable software (binary release)'
arch=('x86_64')
url='https://vlang.io'
license=('MIT')
conflicts=('v' 'vlang' 'vlang-git')
provides=('vlang')
depends=('glibc')
makedepends=('libx11')
optdepends=('glfw: Needed for graphics support'
'freetype2: Needed for graphics support'
'openssl: Needed for http support')
source=("${_pkgname}-${pkgver}.zip::https://github.com/vlang/v/releases/download/${pkgver}/v_linux.zip")
sha256sums=('de7fd8c26cbfb38c904b70d11685d42fc8d3f7f1b43db59cddb4739d98c7c014')
sha512sums=('b8a096c63cf314fab7db49bd32cb254b1e627c95e01628583b20a253f05c88f87cd03273914ae07bca02a356f425b654b7846722ce374f9f5ec88a1c23491973')
build() {
cd v
# Binaries for the tools are not provided with the "binary" release, so we
# still have to build these.
LDFLAGS= ./v build-tools
}
package() {
cd v
install -d "${pkgdir}/usr/lib/vlang" "${pkgdir}/usr/share/vlang" "${pkgdir}/usr/bin"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm755 v "${pkgdir}/usr/lib/vlang"
cp -a cmd "${pkgdir}/usr/lib/vlang/"
cp -a examples "${pkgdir}/usr/share/vlang/"
cp -a thirdparty "${pkgdir}/usr/lib/vlang/"
cp -a vlib "${pkgdir}/usr/lib/vlang/"
cp v.mod "${pkgdir}/usr/lib/vlang/"
ln -s /usr/lib/vlang/v "${pkgdir}/usr/bin/v"
touch "${pkgdir}/usr/lib/vlang/cmd/tools/.disable_autorecompilation"
}
# vim: ft=bash
|