diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-09-20 06:01:20 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-09-20 06:01:20 +0000 |
commit | 22327cfeb1e0697ec15a78e146f1cfe1bb4e6519 (patch) | |
tree | 0c194883bfb18eecc0633042d5a8b73dc26227d0 /community/libfreehand/APKBUILD | |
parent | 9ea842f0c854a04b53627ae451258d044123b9b8 (diff) |
community/libfreehand: upgrade to 0.1.2, modernize
Diffstat (limited to 'community/libfreehand/APKBUILD')
-rw-r--r-- | community/libfreehand/APKBUILD | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/community/libfreehand/APKBUILD b/community/libfreehand/APKBUILD index d451dee7e8d..f7c97e8ab50 100644 --- a/community/libfreehand/APKBUILD +++ b/community/libfreehand/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Timo Teräs <timo.teras@iki.fi> # Maintainer: Timo Teräs <timo.teras@iki.fi> pkgname=libfreehand -pkgver=0.1.1 -pkgrel=1 +pkgver=0.1.2 +pkgrel=0 pkgdesc="Import filter and tools for Adobe FreeHand documents" url="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand" arch="all" @@ -13,20 +13,15 @@ makedepends="$depends_dev gperf perl doxygen librevenge-dev zlib-dev" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" source="http://dev-www.libreoffice.org/src/$pkgname/$pkgname-$pkgver.tar.xz" +builddir="$srcdir"/$pkgname-$pkgver -_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 + default_prepare + update_config_sub } build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -34,14 +29,13 @@ build() { --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --localstatedir=/var \ - || return 1 - make || return 1 + --localstatedir=/var + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } tools() { @@ -49,6 +43,4 @@ tools() { mv "$pkgdir"/usr/bin "$subpkgdir"/usr } -md5sums="97eb6a8607de3c101ad05ceacc122107 libfreehand-0.1.1.tar.xz" -sha256sums="ec6676d0c63f7feac7801a1fe18dd7abe9044b39c3882fc99b9afef39bdf1d30 libfreehand-0.1.1.tar.xz" -sha512sums="552b6b8c00aabe0d557fdacf4bfe8b0b4c2d34ec6f15820f3a54da76b4f24ca5842ba38ea756d05b947a0e8cf48d351429abef64b25508ea032a92965e9c91e2 libfreehand-0.1.1.tar.xz" +sha512sums="4112a76ac99999801d97d1b282596d631d8496a5bf65778ab26aa06da86637b1e2b630648a67ea01bf3316ecec9f2715546baff27af090b900267c87a011b963 libfreehand-0.1.2.tar.xz" |