blob: 28618ab79e23241439525d3dec11e850bbd36443 (
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
|
# Maintainer: whoami <whoami@systemli.org>
pkgname=vlang-git
pkgver=r44.4e24681
pkgrel=1
pkgdesc='Simple, fast, safe language created for developing maintainable software'
arch=('x86_64')
url='https://vlang.io'
license=('MIT')
depends=('glfw' 'libfreetype.so' 'libcurl.so')
conflicts=('v')
source=('git+https://github.com/vlang/v.git'
'https://vlang.io/v.c')
sha256sums=('SKIP'
'SKIP')
pkgver() {
cd "v"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "v/compiler"
сс -w -o vc v.c
./vc -o v .
}
package() {
cd "v"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm755 v "$pkgdir/usr/bin/v"
install -d "$pkgdir/usr/lib/v"
cp -a vlib "$pkgdir/usr/lib/v"
}
|