aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/xdm/APKBUILD41
1 files changed, 17 insertions, 24 deletions
diff --git a/main/xdm/APKBUILD b/main/xdm/APKBUILD
index 907b0d6c5d..dd43b8fde2 100644
--- a/main/xdm/APKBUILD
+++ b/main/xdm/APKBUILD
@@ -9,23 +9,22 @@ arch="all"
license="MIT"
depends="sessreg"
depends_dev="linux-pam-dev libxmu-dev libxaw-dev"
-makedepends="${depends_dev}"
+makedepends="$depends_dev"
install=""
-subpackages="${pkgname}-doc"
+subpackages="$pkgname-doc"
source="
- ${url}/releases/individual/app/${pkgname}-${pkgver}.tar.bz2
- ${pkgname}.initd
+ $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}"
+builddir="$srcdir"/$pkgname-$pkgver
prepare() {
- default_prepare || return 1
- update_config_guess || return 1
+ default_prepare
+ update_config_guess
}
build() {
@@ -37,31 +36,25 @@ build() {
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-ipv6 \
- --with-xdmconfigdir=/etc/X11/${pkgname} \
- --with-pam \
- || return 1
- make || return 1
+ --with-xdmconfigdir=/etc/X11/$pkgname \
+ --with-pam
+ make
}
package() {
cd "$builddir"
+ make DESTDIR="$pkgdir" install
- make DESTDIR="$pkgdir" install || return 1
-
- install -D -m755 "$srcdir"/${pkgname}.initd \
- "$pkgdir"/etc/init.d/${pkgname} || return 1
+ install -D -m755 "$srcdir"/$pkgname.initd \
+ "$pkgdir"/etc/init.d/$pkgname
install -D -m644 "$srcdir"/Xresources.alpinelinux \
- "$pkgdir"/etc/X11/${pkgname}/Xresources.alpinelinux \
- || return 1
+ "$pkgdir"/etc/X11/$pkgname/Xresources.alpinelinux
install -D -m644 "$srcdir"/Xresources.alpinelinux_old \
- "$pkgdir"/etc/X11/${pkgname}/Xresources.alpinelinux_old \
- || return 1
+ "$pkgdir"/etc/X11/$pkgname/Xresources.alpinelinux_old
install -D -m644 "$srcdir"/alpinelinux_old_blue_black.xpm \
- "$pkgdir"/etc/X11/${pkgname}/pixmaps/alpinelinux_old_blue_black.xpm \
- || return 1
+ "$pkgdir"/etc/X11/$pkgname/pixmaps/alpinelinux_old_blue_black.xpm
install -D -m644 "$srcdir"/alpinelinux_white_blue.xpm \
- "$pkgdir"/etc/X11/${pkgname}/pixmaps/alpinelinux_white_blue.xpm \
- || return 1
+ "$pkgdir"/etc/X11/$pkgname/pixmaps/alpinelinux_white_blue.xpm
}
md5sums="64a1af1f7eb69feae12e75d4cc3aaf19 xdm-1.1.11.tar.bz2