diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-05-18 09:04:25 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-05-18 12:52:04 +0000 |
commit | ffb0c6f661f13677b4a25b1fe9f44639769eb981 (patch) | |
tree | 6b3470312ba3e29fa3717ac2eb40318111bb2aed /community | |
parent | f6b7a07205a34f8cb4cf4e2afa75a459f1bc05a6 (diff) | |
download | aports-ffb0c6f661f13677b4a25b1fe9f44639769eb981.tar.bz2 aports-ffb0c6f661f13677b4a25b1fe9f44639769eb981.tar.xz |
community/libmwaw: moved from main
Diffstat (limited to 'community')
-rw-r--r-- | community/libmwaw/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/community/libmwaw/APKBUILD b/community/libmwaw/APKBUILD new file mode 100644 index 0000000000..0c5d314b24 --- /dev/null +++ b/community/libmwaw/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=libmwaw +pkgver=0.3.6 +pkgrel=0 +pkgdesc="Import filter and tools for old Mac documents" +url="http://sourceforge.net/projects/libmwaw/" +arch="all" +license="MPL2" +depends="" +depends_dev="boost-dev librevenge-dev attr-dev zlib-dev" +makedepends="$depends_dev doxygen" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" +source="http://downloads.sourceforge.net/project/libmwaw/libmwaw/libmwaw-$pkgver/libmwaw-$pkgver.tar.bz2" + +_builddir="$srcdir"/libmwaw-$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 +} + +tools() { + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr +} + +md5sums="a8364bf2e4ece2860ab96d6bee75f1d7 libmwaw-0.3.6.tar.bz2" +sha256sums="fb3fcac71eefe4d80ea76c08d259109bb020836cbd9f8d73f06daed1801a637c libmwaw-0.3.6.tar.bz2" +sha512sums="191ae8ba260664c2aefb1db7ce8c3b2ac3ffcf733655b33f606f41636b8c537df56a8800d0fc5b33df41e181ff42c9e7b8dd84788234b46d8602890dc85b51db libmwaw-0.3.6.tar.bz2" |