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

# source: james
TARBALL=dunst-$PKGVER.tar.gz
MD5SUM=68ad9fd1dab537d7a1ad93c899c50278
SRC_URL=https://github.com/dunst-project/dunst/archive/v$PKGVER.tar.gz
BUNDLE=

SLACKREQ='dbus glib' # libxdg-basedir build-time only
SLACKDESC="dunst: dunst $PKGVER (Desktop notification server)  
dunst:  
dunst: Dunst is a lightweight replacement for the notification-daemons 
dunst: provided by most desktop environments. It'\''s very customizable, doesn'\''t 
dunst: depend on any toolkits and therefore fits in those windowmanager 
dunst: centric setups we all love to customize to perfection.  
dunst: 
dunst: 
dunst: 
dunst: 
dunst: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package

### build
pkg_build() {
	cd /tmp/dunst*
	
	# patch to build with older libnotify
	sed -i -e '/notify_notification_new/ s|icon)|icon,NULL)|' dunstify.c

	# build
	make $MAKEFLAGS PREFIX=/usr &&
	make PREFIX=/usr install &&
	pkg_build_slackdesc &&

	# install default style
	install -dm755 /etc/xdg/dunst &&
	install -m644 /tmp/pkg/dunstrc-1.3.2 /etc/xdg/dunst/dunstrc &&
	true
}


