Date: Thursday, April 28, 2016 @ 23:27:00 Author: arojas Revision: 172462
Refresh database using appstream-generator Modified: archlinux-appstream-data/trunk/PKGBUILD ----------+ PKGBUILD | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-04-28 20:56:16 UTC (rev 172461) +++ PKGBUILD 2016-04-28 21:27:00 UTC (rev 172462) @@ -2,8 +2,8 @@ # Maintainer: Antonio Rojas <[email protected]> pkgname=archlinux-appstream-data -pkgver=20160217 -pkgrel=2 +pkgver=20160428 +pkgrel=1 pkgdesc="Arch Linux application database for AppStream-based software centers" arch=(any) url="http://www.archlinux.org" @@ -10,16 +10,25 @@ license=(GPL) depends=() makedepends=() -source=("http://sources.archlinux.org/other/community/archlinux-appstream-data/$pkgver/appstream.xml.gz" -"http://sources.archlinux.org/other/community/archlinux-appstream-data/$pkgver/appstream-failed.xml.gz" -"http://sources.archlinux.org/other/community/archlinux-appstream-data/$pkgver/appstream-icons.tar.gz") -md5sums=('ef680741d92022a75f3dd12d0fd8a11e' - '8740bbe7923ae07f54ca3495527e0eb3' - '28f3ff7f7d696806a4c3b58a29502d69') +source=(http://sources.archlinux.org/other/community/archlinux-appstream-data/$pkgver/{core,extra,community}.xml.xz + http://sources.archlinux.org/other/community/archlinux-appstream-data/$pkgver/{core,extra,community}-icons-64x64.tar.gz + http://sources.archlinux.org/other/community/archlinux-appstream-data/$pkgver/{core,extra,community}-icons-128x128.tar.gz) +noextract=({core,extra,community}-icons-{64x64,128x128}.tar.gz) +md5sums=('ca8e186de849c2c53ed71414922692b7' + '9a0c8fe7b74c22de9573d97eb7c96aa3' + 'af95a564736784f9fc057387a427508a' + '3ab87b983dab1b42b298fca86e427b9e' + '1234e8ab11a6c903ac9f868f88737189' + 'c954864542a2ff6cd0c8329ba3633224' + '3ab87b983dab1b42b298fca86e427b9e' + '991b267e81383a0daef261116cae0ade' + '15b3d9158919d854ad5a4f1444ea4552') package() { - mkdir -p "$pkgdir"/usr/share/app-info/{icons/archlinux,xmls} - + mkdir -p "$pkgdir"/usr/share/app-info/{icons/archlinux-arch-{core,extra,community}/{64x64,128x128},xmls} + for _repo in core extra community; do + tar -xzf $_repo-icons-64x64.tar.gz -C "$pkgdir"/usr/share/app-info/icons/archlinux-arch-$_repo/64x64 + tar -xzf $_repo-icons-128x128.tar.gz -C "$pkgdir"/usr/share/app-info/icons/archlinux-arch-$_repo/128x128 + done cp *.xml "$pkgdir"/usr/share/app-info/xmls/ - cp -r 64x64 128x128 "$pkgdir"/usr/share/app-info/icons/archlinux/ }
