diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-10 14:50:20 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-10 14:59:57 +0000 |
commit | 3969d3a066305d1d0f3da7c44a6e20878740ea9a (patch) | |
tree | befd0160422ef7fd07c68b61e45b776272c33155 /main/libwps | |
parent | 62675bdde3243577fa650dfdf5d559c4c1a3908c (diff) | |
download | aports-3969d3a066305d1d0f3da7c44a6e20878740ea9a.tar.bz2 aports-3969d3a066305d1d0f3da7c44a6e20878740ea9a.tar.xz |
main/libwps: moved to main
Diffstat (limited to 'main/libwps')
-rw-r--r-- | main/libwps/APKBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/main/libwps/APKBUILD b/main/libwps/APKBUILD new file mode 100644 index 0000000000..a09bb69c00 --- /dev/null +++ b/main/libwps/APKBUILD @@ -0,0 +1,56 @@ +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=libwps +pkgver=0.3.1 +pkgrel=0 +pkgdesc="Import filter and tools for Microsoft Works files" +url="http://sourceforge.net/projects/libwps/" +arch="all" +license="MPL2" +depends="" +depends_dev="librevenge-dev" +makedepends="$depends_dev doxygen" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" +source="http://downloads.sourceforge.net/project/libwps/libwps/libwps-$pkgver/libwps-$pkgver.tar.bz2" + +_builddir="$srcdir"/libwps-$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 + rm -f "$pkgdir"/usr/lib/*.la +} + +tools() { + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr +} + +md5sums="a111d9ef5a0dab564e9aec0f2cf8d218 libwps-0.3.1.tar.bz2" +sha256sums="ceb6b1aac4646c641709a00a1bdceb296b30fe8b5e52446f104892e9cc338d4f libwps-0.3.1.tar.bz2" +sha512sums="5416cfa36d8e3a74986a7da1a35e6b0e4071aa651fad755aceb314dc053b3531c8673288cacac0d7b4f983ad0562f2aa78998a2923f596f9a787565b3f834c4b libwps-0.3.1.tar.bz2" |