blob: 559bfb1c6fe2e3c224bdd78d58022ce30c0d1437 (
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
|
# Maintainer: jojo7682345 <jojo7682345@gmail.com>
pkgbase=avbuilder
pkgname=avbuilder-git
pkgver=v0.1
pkgrel=1
pkgdesc="A flexible build system written in C"
arch=('x86_64')
url="https://github.com/jojo7682345/avBuilder.git"
license=('MIT')
makedepends=(git)
provides=(avBuilder)
source=("git+$url")
md5sums=('SKIP')
pkgver(){
cd "avBuilder"
printf "v0.1.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "avBuilder"
git submodule update --init --recursive
chmod +x ./bootstrap
./bootstrap
./avBuilder avBuilder.project
}
package() {
cd "avBuilder"
./bootstrap install $pkgdir/usr/bin/avBuilder
./avBuilder save ./library/c/stdc.project std/c
./avBuilder save ./library/project/import.project std/project
}
|