1 # Contributor: Jon Raphaelson <jonraphaelson@gmail.com>
6 pkgdesc="The latest hg pull of dmenu, with a patch to put cache files in XDG cache directories."
7 url="http://tools.suckless.org/dmenu/"
10 depends=('libx11' 'libxdg-basedir')
11 makedepends=('mercurial')
14 source=('xdgbasedir.patch')
15 md5sums=('627bf53074ece557ab074b8781031b6a')
17 _hgroot='http://hg.suckless.org/'
22 msg "Connecting to Mercurial server...."
24 if [ -d $_hgrepo ] ; then
26 hg pull -u || return 1
27 msg "The local files are updated."
29 hg clone $_hgroot $_hgrepo || return 1
32 msg "Mercurial checkout done or server timeout"
34 rm -rf "$srcdir/$_hgrepo-build"
35 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
36 cd "$srcdir/$_hgrepo-build"
38 msg "Patching for XDG Base Directories"
39 patch -p1 < ../../xdgbasedir.patch
45 msg "Starting make..."
50 cd "$srcdir/$_hgrepo-build"
51 install -Dm644 ${srcdir}/${_hgrepo-build}/LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
52 make MANPREFIX="$pkgdir/usr/share/man" PREFIX="$pkgdir" clean install || return 1
55 # vim:set ts=2 sw=2 et: