diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-06 16:15:20 -0500 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-09-18 14:02:49 +0000 |
commit | c601babb99fb2f91d5cd0fbb5216bd191d0ba9c4 (patch) | |
tree | ed0e360659040e16a0d707aaed0e20b812a7cd89 /main/shared-mime-info | |
parent | 27c1843c4c27e742bd3e18c04f4ff7dc41ff0a3b (diff) | |
download | aports-c601babb99fb2f91d5cd0fbb5216bd191d0ba9c4.tar.bz2 aports-c601babb99fb2f91d5cd0fbb5216bd191d0ba9c4.tar.xz |
main/shared-mime-info: modernise, add test suite
Diffstat (limited to 'main/shared-mime-info')
-rw-r--r-- | main/shared-mime-info/APKBUILD | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/main/shared-mime-info/APKBUILD b/main/shared-mime-info/APKBUILD index 5d42c2414c..f73a2c0de1 100644 --- a/main/shared-mime-info/APKBUILD +++ b/main/shared-mime-info/APKBUILD @@ -1,11 +1,12 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=shared-mime-info pkgver=1.8 -pkgrel=0 +pkgrel=1 pkgdesc="Freedesktop.org Shared MIME Info" url="http://freedesktop.org/Software/shared-mime-info" arch="all" license="GPL" +#options="!check" # No test suite. makedepends="libxml2-dev libxml2-utils glib-dev intltool" depends= install="$pkgname.post-deinstall" @@ -14,20 +15,23 @@ subpackages="$pkgname-doc $pkgname-lang" source="http://freedesktop.org/~hadess/$pkgname-$pkgver.tar.xz" build() { - cd "$srcdir"/$pkgname-$pkgver + cd "$builddir" ac_cv_func_fdatasync=no ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ - --disable-update-mimedb \ - || return 1 + --enable-default-make-check \ + --disable-update-mimedb make -j1 } +check() { + cd "$builddir" + make check +} + package() { - cd "$srcdir"/$pkgname-$pkgver + cd "$builddir" make -j1 DESTDIR="$pkgdir" install } -md5sums="f6dcadce764605552fc956563efa058c shared-mime-info-1.8.tar.xz" -sha256sums="2af55ef1a0319805b74ab40d331a3962c905477d76c086f49e34dc96363589e9 shared-mime-info-1.8.tar.xz" sha512sums="e3fd57898ca85033a29f17d075b9a18a6ebee14db5f996183fd1183a6c6382c3d10c74cd1863563cd031359937ab95c886909ba6f9d7ecc8f2056464673b5fff shared-mime-info-1.8.tar.xz" |