### this file is sourced not run
PKGVER=2019.03
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=xlogin-2019-03-14.tar.bz2
MD5SUM=c29ddedfe70c4f82519b5ad07ddb80c5
SRC_URL=http://distro.ibiblio.org/fatdog/source/900/$TARBALL
BUNDLE=

SLACKREQ='libX11' # 
SLACKDESC="xlogin: xlogin $PKGVER (Login Manager)
xlogin: 
xlogin: xlogin is a login manager similar in function to xdm, gdm, kdm etc. 
xlogin: It does not use any xdm code and has very few dependencies. It can 
xlogin: run as both a stand alone command xlogin or with the optional XDMCP 
xlogin: server xlogin-xdmcpserver. Automatic logins are also possible. The 
xlogin: package has man pages provided.
xlogin: 
xlogin: Original website: http://www.jonshouse.co.uk/xlogin.cgi
xlogin: This is an enhanced fork for xlogin with support for authentication.
xlogin: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/xlogin*
	make $MAKEFLAGS && make install &&
	mkdir -p /usr/share/doc/xlogin &&
	
	cp README* /usr/share/doc/xlogin &&
	ln -sf /etc/X11/xinitrc /etc/xlogin/desktops/default &&
	rm -r /etc/xlogin/backgrounds &&
	ln -sf /usr/share/backgrounds /etc/xlogin/backgrounds
	pkg_build_slackdesc
}
