blob: 888ed8783117858b3e98ca0f863156c96b8706c9 (
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
|
# Maintainer: rustemb <rustemb@systemli.org>
pkgname=carbon-ir-git
pkgver=r142.95caf18
pkgrel=4
pkgdesc="The carbon intermediate representation language."
arch=(x86_64)
url="https://github.com/RobbeDGreef/carbon-ir"
license=('MIT')
depends=(nasm)
makedepends=(cmake git)
provides=('libcarbon-ir.a')
conflicts=(carbon-ir)
replaces=(carbon-ir)
options=(staticlibs)
source=("carbon-ir-git::git+https://github.com/RobbeDGreef/carbon-ir.git")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$pkgname"
mkdir build
./build.sh
./buildlib.sh
}
package() {
cd "$pkgname"
mkdir -p ${pkgdir}/usr/{bin,lib,share}
cp carbon-ir ${pkgdir}/usr/bin
cp libcarbon-ir.a ${pkgdir}/usr/lib
mkdir -p ${pkgdir}/usr/share/carbon-ir
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname/-git//}/LICENSE"
cp -r docs ${pkgdir}/usr/share/carbon-ir
}
|