summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/ucpp/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/user/ucpp/APKBUILD b/user/ucpp/APKBUILD
new file mode 100644
index 000000000..60db06531
--- /dev/null
+++ b/user/ucpp/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Max Rees <maxcrees@me.com>
+pkgname=ucpp
+pkgver=1.3.2
+pkgrel=0
+pkgdesc="Embeddable, quick, light and C99 compliant C preprocessor"
+url="https://code.google.com/p/ucpp/"
+arch="all"
+options="!check" # No test suite.
+license="BSD-3-Clause and Public-Domain"
+depends=""
+makedepends=""
+subpackages="$pkgname-doc"
+source="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$pkgname/$pkgname-$pkgver.tar.bz2"
+builddir="$srcdir/$pkgname"
+
+build() {
+ cd "$builddir"
+ make
+}
+
+package() {
+ cd "$builddir"
+ install -Dm755 ucpp "$pkgdir"/usr/bin/ucpp
+ gzip ucpp.1
+ install -Dm644 ucpp.1.gz "$pkgdir"/usr/share/man/man1/ucpp.1.gz
+}
+
+sha512sums="a8a22162c0e26bc8281928f921f4e531108ba02658fd9c7a1760ae2fe938c910215aa4db02e5c7f0c5ea1aa66d89157bc780f2f13c57fa603de6c2d0c48cfd32 ucpp-1.3.2.tar.bz2"