1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=archlinux-appstream-data
6 pkgdesc='Arch Linux application database for AppStream-based software centers'
8 url='https://www.archlinux.org'
14 for _repo in core extra community multilib; do
15 source+=($_repo-$pkgver.xml.gz::https://sources.archlinux.org/other/packages/$pkgname/$pkgver/$_repo/Components-x86_64.xml.gz
16 $_repo-icons-48x48-$pkgver.tar.gz::https://sources.archlinux.org/other/packages/$pkgname/$pkgver/$_repo/icons-48x48.tar.gz
17 $_repo-icons-64x64-$pkgver.tar.gz::https://sources.archlinux.org/other/packages/$pkgname/$pkgver/$_repo/icons-64x64.tar.gz
18 $_repo-icons-128x128-$pkgver.tar.gz::https://sources.archlinux.org/other/packages/$pkgname/$pkgver/$_repo/icons-128x128.tar.gz)
19 noextract+=($_repo.xml.gz-$pkgver $_repo-icons-{48x48,64x64,128x128}-$pkgver.tar.gz)
21 sha256sums=('d64802bbb69438a5c36864da9bf68e1b5154b32ac3b9a6820f257e4b5b8bd110'
22 '7989bb311baa38ef545250282aa065d23281c46dfb8faabe4c653487bdbded5c'
23 '57ebee607bc2f7d8777cc15eecf75379c8c5a215bd4b5318255d8d7319542c70'
24 '7989bb311baa38ef545250282aa065d23281c46dfb8faabe4c653487bdbded5c'
25 '50e7362467799067ad4ee2b1a2d9e63824d5c50337e92b1e897e49e3eb143f36'
26 '5742b8befc35549d76e01f4b89ce088c8cb81f1df0602e7b092a7faf9d749b5c'
27 'ae1e0a78b4919a6633c944bb309da5121079f9433b3f4dfc0ad0935f482e3898'
28 'b4eabdd33623e8dce78bbcf526b6183fcdaa91a70d19747f94effc6382d1679b'
29 '7f01b09e93ce267f9889da1338d23f8182243b0fdfcae6cc1723ab0549104ff3'
30 '55c4c080d96dc2ffd4c31293fafff16380a9a018f66559b773a9d624a252e351'
31 'b3a397b5c4291a5f5a37f59323161afe2b33f48bb51f25d342064e822c7e4173'
32 '5dee8d591514f155511c987abcc503ab8b05c6dcb7ef30420c78b5eff3ba2f39'
33 '369fbfcc43c0714a4b3c00dc8d35675d8419e3844a69094de568204a4faecd53'
34 '7b40ecc1b77fd9e32e299f587ec53a7bdd52676ab35dcde7e3c38f83e9e910fd'
35 '49c2572b3b8ec94227807a82be09e910df1016cfb7b1663dc9eada5ae599e324'
36 'fa9b2d7e21cffaca71c033e1bdd104a416c58bad73b782151353aa4030780a68')
39 mkdir -p "$pkgdir"/usr/share/app-info/{icons/archlinux-arch-{core,extra,community,multilib}/{48x48,64x64,128x128},xmls}
40 for _repo in core extra community multilib; do
41 tar -xzf $_repo-icons-48x48-$pkgver.tar.gz -C "$pkgdir"/usr/share/app-info/icons/archlinux-arch-$_repo/48x48
42 tar -xzf $_repo-icons-64x64-$pkgver.tar.gz -C "$pkgdir"/usr/share/app-info/icons/archlinux-arch-$_repo/64x64
43 tar -xzf $_repo-icons-128x128-$pkgver.tar.gz -C "$pkgdir"/usr/share/app-info/icons/archlinux-arch-$_repo/128x128
44 install -m644 $_repo-$pkgver.xml.gz "$pkgdir"/usr/share/app-info/xmls/$_repo.xml.gz