aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/icewm/APKBUILD
blob: e6af9ccfc1b05f33f39e981eae21e1ab45bbc6e4 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=icewm
pkgver=1.3.8
pkgrel=3
pkgdesc="A lightweight Win95/Motif-style window manager in C++"
url="http://www.icewm.org"
arch="all"
license="LGPL2"
depends=""
depends_dev=""
makedepends="gdk-pixbuf-dev libx11-dev util-macros fontconfig-dev freetype-dev
	bash libxft-dev libxinerama-dev libice-dev libxrandr-dev libsm-dev"
install=""
subpackages="$pkgname-doc $pkgname-lang"
source="http://downloads.sourceforge.net/icewm/icewm-$pkgver.tar.gz
backtrace_on_glibc.patch"

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

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-guievents \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	sed -e 's/rxvt/urxvt/g' \
	-e 's/\(prog xterm.*\)/\1\nprog Terminal xterm xfce4-terminal/' \
	-e 's/\(prog xterm.*\)/\1\nprog st xterm st/' \
	-e 's/\(prog xterm.*\)/\1\nprog mrxvt xterm mrxvt/' \
	-e 's/prog Mozil.*/\nprog Firefox mozilla firefox\nprog Midori midori midori/' \
	-i "$pkgdir"/usr/share/icewm/menu
}
doc() {
	cd "$_builddir"
	make DESTDIR="$subpkgdir" install-docs install-man || return 1
	for _doc in AUTHORS BUGS README TODO; do
		install -Dm644 "$srcdir"/$pkgname-$pkgver/$_doc "$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1
	done
	install -Dm644 "$srcdir"/$pkgname-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

md5sums="6d61aced3bd20b9e7caeb7e8380368c8  icewm-1.3.8.tar.gz
9abf33b667e9b0b802da94bdcf974252  backtrace_on_glibc.patch"
sha256sums="17588d9e0bbbb23587bc04c83da9dd94fd4da6894ecfee6d7f3ed50d780dcd18  icewm-1.3.8.tar.gz
9894a8d8cd5f8f372662633e2b264ef1cea8d3ea10e4586ef210f493afdd443c  backtrace_on_glibc.patch"
sha512sums="ce9bf3e736a2f3fad4bbf731647b4e4ad0168cd2c4af66b1c43beef9ceeee39d14909714d2fc73ab13f6c285a74dfe31fffc9677ae8bd2d1077716cd6d6afb72  icewm-1.3.8.tar.gz
b844bd0a0e839580e8212b22af9638503b6969c64f98a89bdeadef8e0121fd8668a3246d304e30fe4ba9097ce7767961ec87ac0e8df04abdbc5ec17ae3ce2451  backtrace_on_glibc.patch"