aboutsummaryrefslogtreecommitdiffstats
path: root/main/xdm/APKBUILD
blob: 7d124c3d92fc17c9307b0cfeaed3796a386453ac (plain) (blame)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=xdm
pkgver=1.1.11
pkgrel=1
pkgdesc="X Display Manager"
url="http://xorg.freedesktop.org/"
arch="all"
license="MIT"
depends=""
depends_dev="linux-pam-dev libxmu-dev libxaw-dev"
makedepends="${depends_dev}"
install=""
subpackages="${pkgname}-doc"
source="
	${url}/releases/individual/app/${pkgname}-${pkgver}.tar.bz2
	${pkgname}.initd
	Xresources.alpinelinux
	Xresources.alpinelinux_old
	alpinelinux_old_blue_black.xpm
	alpinelinux_white_blue.xpm
"

_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"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-ipv6 \
		--with-pam \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/X11/xdm/*.la
	install -D -m755 "$srcdir"/${pkgname}.initd \
		"$pkgdir"/etc/init.d/${pkgname} || return 1
	install -D -m644 "$srcdir"/Xresources.alpinelinux \
		"$pkgdir"/usr/lib/X11/${pkgname}/Xresources.alpinelinux \
			|| return 1
	install -D -m644 "$srcdir"/Xresources.alpinelinux_old \
		"$pkgdir"/usr/lib/X11/${pkgname}/Xresources.alpinelinux_old \
			|| return 1
	install -D -m644 "$srcdir"/alpinelinux_old_blue_black.xpm \
		"$pkgdir"/usr/lib/X11/${pkgname}/pixmaps/alpinelinux_old_blue_black.xpm \
		|| return 1
	install -D -m644 "$srcdir"/alpinelinux_white_blue.xpm \
		"$pkgdir"/usr/lib/X11/${pkgname}/pixmaps/alpinelinux_white_blue.xpm \
		|| return 1
}

md5sums="64a1af1f7eb69feae12e75d4cc3aaf19  xdm-1.1.11.tar.bz2
afd14db64ac778cf39be29893b38f59a  xdm.initd
5b147a19de1f402a3fefa1ec1fbfa0b3  Xresources.alpinelinux
3836d85795131140996387911b522c97  Xresources.alpinelinux_old
eac1a660d7e389768cbc9883f0730281  alpinelinux_old_blue_black.xpm
650ee72b634ff7fb146b7a7652416b5a  alpinelinux_white_blue.xpm"
sha256sums="d4da426ddea0124279a3f2e00a26db61944690628ee818a64df9d27352081c47  xdm-1.1.11.tar.bz2
ca89e1049360bd474c965cb76372162de35ea6b32aca977432c2c1d050e4dbc7  xdm.initd
d039de78037ab2071cc836620feaf2389179cab706d57787686d8d64faa688b1  Xresources.alpinelinux
6cb7ab36db5d1f5cfa1d11d3ea4a2bcf4f968ba44ebbeb4391dc74d4f110a39e  Xresources.alpinelinux_old
fd868f01d1b6e1ca6905e9f35599cc7e6a0e0818b34a47f56819ccee1d8db0d8  alpinelinux_old_blue_black.xpm
848334ce1dfafe22746a57005910ef68641df8cc09bd5ad803048bc22e534feb  alpinelinux_white_blue.xpm"
sha512sums="fe6f2b7817c0f7f07a1f5f497edcdfa15b93986fd87f314daa472dac8625327ef46ebbf40d27fe8d4a8a2f8d5af8a01c4438a29356740e0eb350f2bd0c7ec0d5  xdm-1.1.11.tar.bz2
1c52e68a26b565ef046425d500b9f3866f8da098ca4d1d703f1b7b12e2f2f21fbde762fc05f186ebb35e192caf592c76f368da0507339f61e3217d1d231c3d4e  xdm.initd
441ed25037e5210112a3a909e30ae28820aad35616bfa488edc067843edebf328338b86597918ce5451361132abcd82d5aeda2dfe5123fb5796bf2684bd499eb  Xresources.alpinelinux
57f7104ffc5a815c1c5905a513f919bd098da389a81a4941ef827e685cb8858f34960cdbf2b11e188b527a259c0a9fbc89c957946ddb4e2e5b000416b23bd7ba  Xresources.alpinelinux_old
b55424fd9ea0970fdbecd11c1abecf41cad1a7ede03f38011f666ae4eed2a88def5ac364bdf4ebcac09fa66963ed534e85faff74fcd01e9f040229d999382472  alpinelinux_old_blue_black.xpm
3872c54ad6fd6aa6c893f5f950801ae079bb7b6d375a05ef2262eb244a96ea3e949ab3cd962e005acf957c9ad4d30caee4c3935d7864a196625e8bfed9bc5adf  alpinelinux_white_blue.xpm"