summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9dee88fdce9b344d7adcb786e84ef4621da7e1ea (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
# Maintainer: Cezary Drożak <cezary at drozak dot net>

_pkgname=bake
pkgname=$_pkgname-git
pkgver=2.5.1.r127.g34990d3
pkgrel=1
pkgdesc='A build system that lets you clone, build and run C/C++ projects with a single command'
arch=('x86_64')
url='https://github.com/SanderMertens/bake'
license=('GPL3')
depends=()
makedepends=('git' 'make')
source=("$_pkgname::git+https://github.com/SanderMertens/bake.git")
conflicts=("$_pkgname")
provides=("$_pkgname")
sha256sums=('SKIP')

pkgver() {
	cd "$_pkgname"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$srcdir/$_pkgname"
	make -C build-Linux all
}

package() {
	cd "$srcdir/$_pkgname"
	install -Dm755 bake -t "$pkgdir/usr/bin"
}