aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ucpp/APKBUILD
blob: 51436cdf8abd909245d15f64b3bbe4a4aea8f383 (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=ucpp
pkgver=1.3.2
pkgrel=0
pkgdesc="C preprocessor which is embeddable, quick, light and C99 compliant"
url="https://code.google.com/p/ucpp/"
arch="all"
license="BSD"
depends=""
makedepends=""
install=""
subpackages=""
source="https://ucpp.googlecode.com/files/ucpp-$pkgver.tar.bz2"

_builddir="$srcdir"/ucpp
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	install -dm755 "$pkgdir"/usr/bin
	install -m755 ucpp "$pkgdir"/usr/bin/
}

md5sums="7b3f0d9381fd8518ae895a66235936d1  ucpp-1.3.2.tar.bz2"
sha256sums="ab7ecc5ba2c2617fa14cd0a939c1e87ed789c59767fb39fc9b7d0ebf63a81635  ucpp-1.3.2.tar.bz2"
sha512sums="a8a22162c0e26bc8281928f921f4e531108ba02658fd9c7a1760ae2fe938c910215aa4db02e5c7f0c5ea1aa66d89157bc780f2f13c57fa603de6c2d0c48cfd32  ucpp-1.3.2.tar.bz2"