summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 465bff991e60e7d546586589b2ca2a173c75d2b8 (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
# Maintainer: Mark Riedesel <mark@klowner.com>

_basename=GENie
pkgname=${_basename,,}-git
pkgver=r923.78817a9
pkgrel=1
pkgdesc="GENie project generator tool (a fork of premake by Branimir Karadžić)"
arch=('x86_64' 'arm' 'i686')
url='https://github.com/bkaradzic/GENie'
makedepends=('git' 'awk' 'grep')
source=("git+https://github.com/bkaradzic/GENie#branch=master")
md5sums=('SKIP')

pkgver() {
	cd "${_basename}"
	printf "r%s.%s" "$(awk '$1 == "version" {print $2}' README.md)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${_basename}"
	make
	./bin/linux/genie release
	make -C build/gmake.linux clean
	make -C build/gmake.linux all
}

package() {
	cd "${_basename}"

	# Install the binary
	install -D -m755 "${srcdir}/${_basename}/bin/linux/genie" \
		"${pkgdir}/usr/bin/genie"

	# Install the readme
	install -D -m644 "${srcdir}/${_basename}/README.md" \
		"${pkgdir}/usr/share/doc/${_basename}/README.md"

	# Install the license
	install -D -m644 "${srcdir}/${_basename}/LICENSE" \
		"${pkgdir}/usr/share/licenses/${_basename}/LICENSE"
}