aboutsummaryrefslogtreecommitdiffstats
path: root/community/libmspub
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-05-18 08:58:57 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-05-18 12:52:04 +0000
commit24cb1631b1a8eb48ae3c91fbf6c85aa290f1b7bd (patch)
tree4629c93af0468279e18e05cbe3446df8b38888d0 /community/libmspub
parent9d0b9d8b85f463ce5858cb334789ef040f2a7fc0 (diff)
downloadaports-24cb1631b1a8eb48ae3c91fbf6c85aa290f1b7bd.tar.bz2
aports-24cb1631b1a8eb48ae3c91fbf6c85aa290f1b7bd.tar.xz
community/libmspub: moved from main
Diffstat (limited to 'community/libmspub')
-rw-r--r--community/libmspub/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/community/libmspub/APKBUILD b/community/libmspub/APKBUILD
new file mode 100644
index 0000000000..1d40db82e6
--- /dev/null
+++ b/community/libmspub/APKBUILD
@@ -0,0 +1,55 @@
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=libmspub
+pkgver=0.1.2
+pkgrel=3
+pkgdesc="Import filter and tools for MS Publisher files"
+url="https://wiki.documentfoundation.org/DLP/Libraries/libmspub"
+arch="all"
+license="MPL2"
+depends=""
+depends_dev="boost-dev librevenge-dev zlib-dev icu-dev libwpd-dev libwpg-dev"
+makedepends="$depends_dev doxygen"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
+source="http://dev-www.libreoffice.org/src/$pkgname/$pkgname-$pkgver.tar.xz"
+
+_builddir="$srcdir"/$pkgname-$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
+ update_config_sub
+}
+
+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="050b8b29c2620fdbfb5d8561d4d08a11 libmspub-0.1.2.tar.xz"
+sha256sums="b0baabf82d20c08ad000e80fa02154ce2f2ffde1ee60240d6e3a917c3b35560f libmspub-0.1.2.tar.xz"
+sha512sums="c19025a2b887c33f5966b0972204ab2a8ae841b82df38eaf53c0cdc8f99d93cccab5e1c78143a79d5aef9c7a7387bd6f2cf34833a00861058e0e4687f48be714 libmspub-0.1.2.tar.xz"