summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b7b0c30d1a58a7568e55e93a9d2f51ce8248f3d9 (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
# Maintainer: Brian Bidulock <bidulock at openss7 dot org>

pkgname=wdm-crm-git
_pkgname=wdm
pkgver=1.28.r40.gd9a51b4
pkgrel=1
pkgdesc="A replacement X window display manager similar to, and based on XDM"
arch=(i686 x86_64)
url="https://github.com/bbidulock/wdm"
license=('GPL')
depends=('windowmaker-crm-git' 'libdbus')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname" "$_pkgname-git")
source=("$pkgname::git+https://github.com/bbidulock/wdm.git#branch=next"
	build.patch)
md5sums=('SKIP'
         '38cc79eaa37e8fc0fb6967c25b3afc07')

pkgver() {
  cd $pkgname
  git describe --long | sed -r 's/wdm-//;s/([^-]*-g)/r\1/;s/-/./g'
}

prepare() {
  cd $pkgname
  patch -Np2 -b -z .orig <../build.patch
  autoreconf -fiv
}

build() {
  cd $pkgname
  ./configure --prefix=/usr --localedir=/usr/share/locale \
	--sysconfdir=/etc/wdm --with-wdmdir=/etc/wdm --mandir=/usr/share/man \
	--with-fakehome=/var/empty \
	--enable-aafont --enable-exitlogin
  rm -f po/stamp-po
  make
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
  install -Dm755 bin/TestLogin "$pkgdir/usr/bin/wdmTestLogin"
  install -Dm755 bin/wdmChooser "$pkgdir/usr/bin/wdmChooser"
  install -Dm755 bin/wdmPrefs "$pkgdir/usr/bin/wdmPrefs"
  # used /etc/pam.d/xscreensaver as an example
  #
  install -d "$pkgdir/etc/pam.d"
  echo "auth	required	pam_unix_auth.so" > "$pkgdir/etc/pam.d/wdm"
  chmod 0644 "$pkgdir/etc/wdm/wdm-config"
  install -d "$pkgdir/etc/wdm/authdir"
  install -d "$pkgdir/var/empty"
}