diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-05-18 09:02:32 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-05-18 12:52:04 +0000 |
commit | 0aad13ceb787512855c94c4692c2aa4ede57ce24 (patch) | |
tree | 659499733e63461c29a9845e5e9d97b9c2fa3c09 /community/libwpg | |
parent | ec86a49e6a24c25411537fd5d1831b8807316aba (diff) | |
download | aports-0aad13ceb787512855c94c4692c2aa4ede57ce24.tar.bz2 aports-0aad13ceb787512855c94c4692c2aa4ede57ce24.tar.xz |
community/libwpg: moved from main
Diffstat (limited to 'community/libwpg')
-rw-r--r-- | community/libwpg/APKBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/community/libwpg/APKBUILD b/community/libwpg/APKBUILD new file mode 100644 index 0000000000..cd08c5974d --- /dev/null +++ b/community/libwpg/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=libwpg +pkgver=0.3.1 +pkgrel=0 +pkgdesc="Import filter and tools for WordPerfect Graphics" +url="http://sourceforge.net/projects/libwpg/" +arch="all" +license="MPL2" +depends="" +depends_dev="librevenge-dev libwpd-dev" +makedepends="$depends_dev doxygen" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" +source="http://downloads.sourceforge.net/project/libwpg/libwpg/libwpg-$pkgver/libwpg-$pkgver.tar.bz2" + +_builddir="$srcdir"/libwpg-$pkgver +prepare() { + local i + cd "$_builddir" + update_config_sub || return 1 + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +tools() { + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr +} + +md5sums="dfd066658ec9d2fb2262417039a8a1c3 libwpg-0.3.1.tar.bz2" +sha256sums="29049b95895914e680390717a243b291448e76e0f82fb4d2479adee5330fbb59 libwpg-0.3.1.tar.bz2" +sha512sums="e5533e7c43fc08dfdc2a8c5e81e1ab3ef8b515fe50256de2f0917eaf39f83ff5416821e151cf212697f89936f256f3896fb72d101ce64c4e09f4666bcc5909ec libwpg-0.3.1.tar.bz2" |