1 # Contributor: Muhammed Uluyol <some-guy> (uluyol0 AT gmail DOT com)
4 # This can be changed to anything with -session at the end
5 _installname=wm-session
8 pkgdesc="A session manager for standalone window managers"
10 url="http://github.com/some-guy/wm-session/"
11 license=('custom:ISC')
12 install="wm-session.install"
16 _gitroot="git://github.com/some-guy/wm-session.git"
19 # trick re-determining the build revision and, or entertain the hidden
20 # makepkg option --forcever, huh
21 if [ -z "$FORCE_VER" ]; then
22 msg "Determining latest build revision..."
23 FORCE_VER=$(date +%Y%m%d)
28 msg "Connecting to GIT server...."
30 if [ -d $_gitname ] ; then
31 cd $_gitname && git pull origin
32 msg "The local files are updated."
37 msg "GIT checkout done or server timeout"
38 msg "Starting make..."
40 install -d ${pkgdir}/etc/xdg/${_installname} || return 1
41 install -d ${pkgdir}/usr/bin || return 1
42 install -d ${pkgdir}/usr/share/licenses/${_gitname} || return 1
43 install -m 644 ${_gitname}/config ${pkgdir}/etc/xdg/${_installname}/ || return 1
44 install -m 755 ${_gitname}/${_gitname} ${pkgdir}/usr/bin/${_installname} || return 1
45 install -m 755 ${_gitname}/${_gitname}-end ${pkgdir}/usr/bin/${_installname}-end || return 1
46 install -m 644 ${_gitname}/LICENSE ${pkgdir}/usr/share/licenses/${_gitname} || return 1