#Packager: Dimitris Tzemos pkgname=xdgmenumaker pkgver=2.3 pkgrel=1dj arch=noarch source=("https://github.com/gapan/xdgmenumaker/archive/2.3/$pkgname-$pkgver.tar.gz") docs=("AUTHORS" "COPYING" "README*") url="https://github.com/gapan/xdgmenumaker" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "xdgmenumaker (application menu generator for window managers)" "xdgmenumaker is a command line tool, written in python,that generates" "application menus using xdg information, by scanning *.desktop files" "in all $XDG_DATA_DIRS/applications directories. All applications" "are sorted according to the main categories as specified by" "freedesktop.org. The menu entries that are generated by xdgmenumaker" "are localised according to the running user locale settings." "xdgmenumaker generates menus for amiwm, blackbox, compizboxmenu," "fluxbox, fvwm, icewm, jwm, pekwm, twm, and windowmaker." ) build() { cd $startdir/src/$pkgname-$pkgver # I had to use the full path to xdgmenumaker to get a windowmaker # dynamic menu to work, the man page should reflect this: sed -i '/``xdgmenumaker -f windowmaker``/s,``,``/usr/bin/,' man/$pkgname.t2t # 20220110 bkw: new txt2tags 3.7 doesn't support %%mtime in .t2t, so: sed -i "s,^%%mtime.*,$( date +%Y-%m-%d )," man/$pkgname.t2t make -j1 man install DESTDIR=$startdir/pkg PREFIX=/usr }