summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ae4dd65030378a4e7edb4030e3bac828e134574 (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
26
27
# Maintainer: Chanathip Srithanrat <axesd9@gmail.com>

pkgname=mcos-shell-theme
pkgver=1.2
pkgrel=3
pkgdesc='McOS Shell Theme'
arch=('any')
url='https://www.opendesktop.org/p/1241688/'
license=('GPL')
depends=('gnome-shell-extensions')

# 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/1529367872/s/$_s/t/$_t/$pkgname-$pkgver.tar.xz")
md5sums=('3e8e2e6d642665b4ad79563dcf7bd6d6')

prepare() {
    mv McOS-Shell-themes/McOS-Dark-Shell .
    mv McOS-Shell-themes/McOS-Light-Shell .
    rm -rf McOS-Shell-themes
}

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