summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b9924dd4b3e451a1de87298329a19777347fba9 (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
46
47
48
49
50
51
52
53
54
55
56
pkgbase="libadvo"
pkgname="libadvo"
pkgver=1.1
pkgrel=1
pkgdesc="Advanced Output Library"

arch=("any")

makedepends=("git" "binutils" "make" "gcc")
depends=("glibc")

license=("MIT")

url="https://github.com/Noah-Arcouette/advo.git"

provides=("libadvo")
conflicts=("libadvo")

giturl="https://raw.githubusercontent.com/Noah-Arcouette/advo/master/"

source=(
	"git+${url}"
)

sha256sums=(
	"SKIP"
)


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

build () {
	cd "advo"

	make configure
	make build
}

package() {
	cd "advo"

	# setup dirs
	mkdir -p "${pkgdir}/usr/lib/"
	mkdir -p "${pkgdir}/usr/include/"

	# make binary root owned and executable
	chown root:root ${srcdir}/advo/bin/libadvo.a
	chmod a+x ${srcdir}/advo/bin/libadvo.a

	# copy binary
	mv "${srcdir}/advo/bin/libadvo.a" "${pkgdir}/usr/lib/libadvo.a"
	mv "${srcdir}/advo/inc/ao.h" "${pkgdir}/usr/include/advo.h"
}