archrelease: copy trunk to extra-x86_64
[arch-packages.git] / archlinux-appstream-data / trunk / PKGBUILD
blob3aae08544d54184b08add7cb78ff92e4c0c18dbe
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=archlinux-appstream-data
4 pkgver=20220727
5 pkgrel=1
6 pkgdesc='Arch Linux application database for AppStream-based software centers'
7 arch=(any)
8 url='https://www.archlinux.org'
9 license=(GPL)
10 depends=()
11 makedepends=()
12 source=()
13 noextract=()
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)
20 done
21 sha256sums=('10f38da399db1ad1ffd0d613b270cc31cb7fda274a5df48de84202d7095e5024'
22             '7989bb311baa38ef545250282aa065d23281c46dfb8faabe4c653487bdbded5c'
23             'c21726d2193e9431433257035573d1e86b2c30633e9cb0aa3a276c2ca3d95543'
24             '7989bb311baa38ef545250282aa065d23281c46dfb8faabe4c653487bdbded5c'
25             'a9f8273b76540cfde13c12b6e2ea5ab8130dbd9dcffc40e29c8280993c508d7f'
26             '8d3a9e1bedca60ec05c58678bf26e36396e35ebd6373caadd79929137122b302'
27             '4df52a5fec36e3b665238e6ee7b52b43a4f00a93fd0cce631360921fb44f738f'
28             'd450057fa0186627f4305ce0b906e5cb7619cae45a9970df10c3dedcb9a345e7'
29             'b2a02d88be59867b4436b50d53b95ddd58802614deb49d6d2b2280fdb3818ad3'
30             'f4218119434467da926dd1f1a4a422fee9068aba4c8eaed39280270d53783fa0'
31             'fc8d3ea80ccc5cc4184d3406f6dbf68ca4adc932a4e07a0ce5b072a64fb169a1'
32             '7faea334f440e4f69ce3ebf5b45364417e19f192e0ebc548cb7ae2018179be23'
33             '5653a6e257ba606ce1415bc2524999f46d723114d4f7d0501ed088fd1df9e584'
34             'f9666a520d16b4e59ad151bf946c77cdf7ab374d61e52808108ee1c33b3e55c7'
35             '84b8d3a89676212025a2a161596d09be356f4531d9abc0d7d824a7ce7d9015c7'
36             '13fb38dcb0fd072c57fb46ebc87ea05e9793f63d9e8e9d78374ad5fa6a4d1642')
38 package() {
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
45   done