aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-10 14:43:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-10 14:59:56 +0000
commitccfbd65f04ae772d2f7e2165726a1862e6a0edf1 (patch)
treee7de0d21fb55aa147b198501636986f04e132ef3 /main
parent56bcbf6776b67ccfcb6499874c18fc56aa65b668 (diff)
downloadaports-ccfbd65f04ae772d2f7e2165726a1862e6a0edf1.tar.bz2
aports-ccfbd65f04ae772d2f7e2165726a1862e6a0edf1.tar.xz
main/libwpg: moved to main
Diffstat (limited to 'main')
-rw-r--r--main/libwpg/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/main/libwpg/APKBUILD b/main/libwpg/APKBUILD
new file mode 100644
index 0000000000..3e6d381d44
--- /dev/null
+++ b/main/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.0
+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"
+ 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
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+tools() {
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr
+}
+
+md5sums="17da9770cb8b317b7633f9807b32b71a libwpg-0.3.0.tar.bz2"
+sha256sums="28fc3580228a82948dfc01d07abd5076c8b0df76a68702c1a81eb88fdf377348 libwpg-0.3.0.tar.bz2"
+sha512sums="254b5d2ff3cfeb23a3a94d81e9fc44c4c78550bb25a822e2b0ae7bc7cfdcdc4db5742992d20087353d66c81df956b9837c329c950afd41e297bddd0e9d1f3aa8 libwpg-0.3.0.tar.bz2"