summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 620cf4e81f0bd57dadb54c72f1e2be2b8b90c33d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: Chanathip Srithanrat <axesd9@gmail.com>

pkgname=macos11-icon-theme
pkgver=4.6
pkgrel=2
pkgdesc='macOS11 iCons Collection'
arch=('any')
url='https://www.opendesktop.org/p/1102582/'
license=('GPL')
depends=('gtk-update-icon-cache')

# Hash and Timestamp
_p="var \(hash = '\(.*\)\|timetamp = '\(.*\)\)';"
read _s _t <<< $(echo -n $(curl -s $url | sed -n "s/$_p/\2\3/p" | head -n2))

source=("https://dl.opendesktop.org/api/files/download/id/1533641153/s/$_s/t/$_t/$pkgname-$pkgver.tar.xz")
md5sums=('69224980e432c65a8e50009033ed66e1')

prepare() {
    find -name '* *' -delete
}

package() {
    find */ -type f -exec install -Dm644 '{}' $pkgdir/usr/share/icons/'{}' \;
}