blob: 8cb6085a0bf8fe66cf25ee4c1cfd41a6653c68f3 (
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
28
29
30
31
32
33
34
35
|
# Maintainer: Maya Pasricha <maya.pasricha _ nyu _ edu>
pkgname=nier-cursors-bin
pkgver=2020_08_25
pkgrel=2
pkgdesc="XCursor theme based on NieR Automata"
arch=('any')
url="https://github.com/Beinsezii/NieR-Cursors"
license=('MIT')
# You can thank Yoko Taro's decision to stylise NieR with capital letters for
# hardcoding this instead of using $pkgname
source=(
"$url/releases/download/${pkgver//_/-}/NieR_Cursors_${pkgver//_/-}.tar.xz"
"LICENSE"
)
prepare() {
# Remove Adwaita inheritance so as to not depend on any other packages.
# Users can add their own backup themes via ~/.local/share/icons or ~/.icons
# See https://man.archlinux.org/man/Xcursor.3.en#THEMES
#
# If instead of removing inheritance you want to change it, you can use:
# sed -i 's/Adwaita/<YOUR-BACKUP-THEME>/' "${srcdir}"/nier_cursors/index.theme
sed -i '/Inherits=/d' "${srcdir}"/nier_cursors/index.theme
}
package() {
install -Ddm755 "${pkgdir}"/usr/share/icons/"${pkgname}"
cp -R --no-preserve=ownership "${srcdir}"/nier_cursors/* "${pkgdir}"/usr/share/icons/"${pkgname}"
# This license file comes directly from the github repository
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
}
md5sums=('9406690176de9cbd10c92a971fa022b8'
'5f33aa2e6130ccc29c0a86a1ff6be222')
|