aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-10 14:59:40 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-10 14:59:57 +0000
commit0a9a1cea64a99e001ef276cee245551e77d0f580 (patch)
tree0073a2d2995aa2520507a2e4a738d26199f183bd /main
parenteb778ec0325bf30d63fd4df1be2b71a630e25bc1 (diff)
downloadaports-0a9a1cea64a99e001ef276cee245551e77d0f580.tar.bz2
aports-0a9a1cea64a99e001ef276cee245551e77d0f580.tar.xz
main/libfreehand: move to main
Diffstat (limited to 'main')
-rw-r--r--main/libfreehand/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/main/libfreehand/APKBUILD b/main/libfreehand/APKBUILD
new file mode 100644
index 0000000000..c9c00d34c2
--- /dev/null
+++ b/main/libfreehand/APKBUILD
@@ -0,0 +1,55 @@
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=libfreehand
+pkgver=0.1.0
+pkgrel=0
+pkgdesc="Import filter and tools for Adobe FreeHand documents"
+url="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand"
+arch="all"
+license="MPL2"
+depends=""
+depends_dev="librevenge-dev libxml2-dev zlib-dev"
+makedepends="$depends_dev gperf perl 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
+}
+
+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="f50cee10fd59d50f1f350f9e817a0ab3 libfreehand-0.1.0.tar.xz"
+sha256sums="5119aac8b0b28d749905f8094e526b9a018a2e4a208b5d0317c7554a62af4706 libfreehand-0.1.0.tar.xz"
+sha512sums="8b3bdd3df158d4371f5007abaa5fd11f7039e0f3e2bbef9540b730ca3fcf94cbf6bd50a8bf917c948fb5257f1b0704b2a10b7cb49b1becdedfef52b41a826f90 libfreehand-0.1.0.tar.xz"