aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/dmz-cursor-theme/APKBUILD
blob: 1b92ea8ae714f8f4dd8aa6c3cf5f2cf6acfc60c3 (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
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=dmz-cursor-theme
pkgver=0.4.4
pkgrel=0
pkgdesc="DMZ cursor theme"
url="http://jimmac.musichall.cz"
arch="noarch"
license="CC-BY-SA"
depends=""
depends_dev=""
makedepends="xcursorgen"
install=""
subpackages="dmz-aa-cursor-theme:aa"
source="http://ftp.de.debian.org/debian/pool/main/d/$pkgname/"$pkgname"_"$pkgver".tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"/DMZ-White/pngs
	 ./make.sh || return 1
	cd "$_builddir"/DMZ-Black/pngs
	 ./make.sh || return 1
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir"/usr/share/icons/Vanilla-DMZ/cursors || return 1
	cp -a DMZ-White/xcursors/* "$pkgdir"/usr/share/icons/Vanilla-DMZ/cursors || return 1
	install -Dm644 DMZ-White/index.theme "$pkgdir"/usr/share/icons/Vanilla-DMZ/index.theme
}

aa() {
	cd "$_builddir"
	mkdir -p "$subpkgdir"/usr/share/icons/Vanilla-DMZ-AA/cursors || return 1
	cp -a DMZ-Black/xcursors/* "$subpkgdir"/usr/share/icons/Vanilla-DMZ-AA/cursors || return 1
	install -Dm644 DMZ-Black/index.theme "$subpkgdir"/usr/share/icons/Vanilla-DMZ-AA/index.theme
}

md5sums="06fbab13df89c5770ce61b0e3e31e5f6  dmz-cursor-theme_0.4.4.tar.gz"
sha256sums="46af4cf1356df799f9ee94451f05d0bdbb8d82e54bdeae3f32fa107602359981  dmz-cursor-theme_0.4.4.tar.gz"
sha512sums="e0f455e3b66c0acb87eb9f017e7d7e6e16782a58c8c3a3518c879d1251372beaf92bdf87775ee72ff6eb477385f4f58e6d00479967d634337c5fae766179a5d3  dmz-cursor-theme_0.4.4.tar.gz"