diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-17 10:38:03 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-11-17 10:38:03 +0000 |
commit | 6223688edcfea5c01e9da4eebb91433d4d3f49d8 (patch) | |
tree | 0329081762d8d21f54a1761fa070aaecaa5b6b4b /main/appstream-glib/APKBUILD | |
parent | 3f1e3644f08e418e03e00ddfa9b21b05f80b3efd (diff) | |
download | aports-6223688edcfea5c01e9da4eebb91433d4d3f49d8.tar.bz2 aports-6223688edcfea5c01e9da4eebb91433d4d3f49d8.tar.xz |
main/appstrem-glib: move from testing
needed by gucharmap
Diffstat (limited to 'main/appstream-glib/APKBUILD')
-rw-r--r-- | main/appstream-glib/APKBUILD | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/main/appstream-glib/APKBUILD b/main/appstream-glib/APKBUILD new file mode 100644 index 0000000000..ac5c3fc234 --- /dev/null +++ b/main/appstream-glib/APKBUILD @@ -0,0 +1,68 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=appstream-glib +pkgver=0.3.2 +pkgrel=0 +pkgdesc="Library for AppStream metadata" +url="http://people.freedesktop.org/~hughsient/appstream-glib/" +arch="all" +license="LGPLv2+" +depends="" +depends_dev="glib-dev gdk-pixbuf-dev" +makedepends="$depends_dev fontconfig-dev freetype-dev pango-dev sqlite-dev + gobject-introspection-dev gtk-doc yaml-dev libarchive-dev libsoup-dev + gtk+3.0-dev" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-builder" +source="http://people.freedesktop.org/~hughsient/appstream-glib/releases/appstream-glib-$pkgver.tar.xz" + +_builddir="$srcdir"/appstream-glib-$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" + DATADIRNAME=share ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --disable-rpm \ + --enable-shared \ + --disable-static \ + --enable-gobject-introspection \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la "$pkgdir"/usr/lib/asb-plugins/*.la +} + +builder() { + pkgdesc="Library and command line tools for building AppStream metadata" + mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/lib \ + "$subpkgdir"/usr/share/bash-completion/completions || return 1 + mv "$pkgdir"/usr/bin/appstream-builder "$subpkgdir"/usr/bin/ || return 1 + mv "$pkgdir"/usr/share/bash-completion/completions/appstream-builder \ + "$subpkgdir"/usr/share/bash-completion/completions/ || return 1 + mv "$pkgdir"/usr/lib/asb-plugins \ + "$pkgdir"/usr/lib/libappstream-builder.so.* \ + "$subpkgdir"/usr/lib/ || return 1 + +} + +md5sums="bfb5a404dd09a87f8f9d9cd72861c137 appstream-glib-0.3.2.tar.xz" +sha256sums="17b76a6ab6cda457f3a5eb44423e1af0b571262cdac4d3d8c9975d661b501e8e appstream-glib-0.3.2.tar.xz" +sha512sums="50dfdf02a098786e21187e26febd19f46aa0c2a83daf7651f6fdc18393cc20e0479f0874afa0cfe30d25ac6145b3cc39f65da106835f46142d12f4e3d842e9ea appstream-glib-0.3.2.tar.xz" |