diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-11 22:05:40 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-11 22:05:40 -0500 |
commit | d935bfa7ed9f9aa0a162d8bd3d413fe477f21fb8 (patch) | |
tree | 1def8e995d9ce9b39da3cb4bd3f269d75c07e519 /user/mcpp/APKBUILD | |
parent | e120a4717450d84e0d37a120593d23bf5dd2e5e8 (diff) | |
download | packages-d935bfa7ed9f9aa0a162d8bd3d413fe477f21fb8.tar.gz packages-d935bfa7ed9f9aa0a162d8bd3d413fe477f21fb8.tar.bz2 packages-d935bfa7ed9f9aa0a162d8bd3d413fe477f21fb8.tar.xz packages-d935bfa7ed9f9aa0a162d8bd3d413fe477f21fb8.zip |
user/mcpp: pull in, take, fix
Diffstat (limited to 'user/mcpp/APKBUILD')
-rw-r--r-- | user/mcpp/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/user/mcpp/APKBUILD b/user/mcpp/APKBUILD new file mode 100644 index 000000000..233899f5f --- /dev/null +++ b/user/mcpp/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=mcpp +pkgver=2.7.2 +pkgrel=2 +pkgdesc="Portable C preprocessor" +url="http://mcpp.sourceforge.net" +arch="all" +license="BSD-2-Clause" +depends="" +makedepends="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" +source="http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz + 01-zeroc-fixes.patch + 02-gniibe-fixes.patch" + +prepare() { + cd "$builddir" + update_config_sub + default_prepare +} + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --enable-mcpplib \ + --disable-static + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + + mkdir -p "$pkgdir"/usr/share/licenses/$pkgname + mv "$pkgdir"/usr/share/doc/$pkgname/LICENSE \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +sha512sums="1ca885cb13fdb684de9d0595a9215b52f48a93a69077d82cdcacafe40d9a61fb77b00a3ff2b8890e7bc0a0fcc0c8d70d4093c00c280351cd4459aba67c573235 mcpp-2.7.2.tar.gz +86b2e851490e180dfe3028a5a37019ea423924c921ab053a642fb78d4533a87f913ede2928daf9da4daf60e67795a24521186b40c76961ae99ebeb75f8aa95ad 01-zeroc-fixes.patch +a31a0f2e7430381e5e62ea4257a35891ce9d2f3beed60c6caad3b6d298a58557e9c850223840ef8c6f6c2e8139cf4a4edf29ac93b2532680feafba503fcfaf6d 02-gniibe-fixes.patch" |