summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f0815336029d33fb62fef74af93cd5100e4433bf (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
# Maintainer: Salvador PardiƱas <darkfm AT vera DOT com DOT uy>
pkgname=cake-git
pkgver=r225.2bef53e
pkgrel=1
epoch=1
pkgdesc="C23 to C99 transpiler"
arch=("x86_64" "aarch64")
url="https://github.com/thradams/cake"
license=('GPL3')
groups=()
depends=()
makedepends=("gcc")
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/thradams/cake.git")
noextract=()
md5sums=("SKIP")
validpgpkeys=()

prepare() {
    cd "cake/src"
    gcc build.c -o build
}

build() {
    cd "cake/src"
    ./build
}

package() {
    cd "cake/src"
    install -D -m755 cake "$pkgdir/usr/bin/cake"
}

pkgver() {
    cd cake
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}