blob: e73c9a978ada5463ca517671aba19552a047870a (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
pkgname=(xcursor-hackneyed-light xcursor-hackneyed-dark)
pkgbase=xcursor-hackneyed
pkgdesc='Cursor theme inspired by Windows 3.x with high-contrast and sensible use of colors'
pkgver=0.9.2
pkgrel=1
url=https://gitlab.com/Enthymeme/hackneyed-x11-cursors/
license=(custom:MIT)
arch=(any)
makedepends=(make xorg-xcursorgen 'inkscape>=1.0' 'imagemagick>=6.8.6')
source=("${url}/-/archive/${pkgver}/hackneyed-x11-cursors-${pkgver}.tar.bz2")
sha512sums=('ebfabd9e8a214eda07c03181c2055410794b9fa149b1f2f31f63a99157fbbc4895a1ffa8182ad422d846eb06337de6ed6d324e2c1965f949273ecfd5e6600471')
build () {
cd "hackneyed-x11-cursors-${pkgver}"
# Normal light variant.
make -j$(nproc) dist dist.left PREFIX=/usr
make install PREFIX=/usr DESTDIR="$(pwd)/_light"
make clean PREFIX=/usr
# Dark variant.
make -j$(nproc) dist dist.left PREFIX=/usr \
THEME_NAME=Hackneyed-Dark \
COMMON_SOURCE=theme/common-dark.svg \
RSVG_SOURCE=theme/right-handed-dark.svg \
LSVG_SOURCE=theme/left-handed-dark.svg
make install PREFIX=/usr THEME_NAME=Hackneyed-Dark DESTDIR="$(pwd)/_dark"
make clean PREFIX=/usr THEME_NAME=Hackneyed-Dark
}
_package_common () {
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
package_xcursor-hackneyed-light () {
replaces=(xcursor-hackneyed)
conflicts=(xcursor-hackneyed)
cd "hackneyed-x11-cursors-${pkgver}"
cp -a _light/* "${pkgdir}"
_package_common
}
package_xcursor-hackneyed-dark () {
pkgdesc="${pkgdesc} (dark variant)"
cd "hackneyed-x11-cursors-${pkgver}"
cp -a _dark/* "${pkgdir}"
_package_common
}
|