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

# mine
TARBALL=sven-2015.03.tar.bz2
MD5SUM=c824ea0739aa196a8c5f1c33af2613c5
SRC_URL=http://distro.ibiblio.org/fatdog/source/700/$TARBALL
BUNDLE=

SLACKREQ='gtk2'
SLACKDESC='sven: sven 2015.03 (Multimedia keyboard manager)  
sven:  
sven: Sven is a multimedia keyboard manager to map your multimedia keys 
sven: (volume up, volume down, etc) to commands to perform the actions. It can 
sven: also be used to map other arbitrary key sequences to commands too.  
sven: 
sven: 
sven: 
sven: 
sven: 
sven:
'

### default pkg_download
### default pkg_prepare
### package
pkg_package() {
	# override with ours
	cp $CHROOT_DIR/tmp/pkg/sven-key-config usr/share/sven/key_config
}

### build
pkg_build() {
	cd /tmp/sven*
	
	# don't want these old plugins, just keep mixer and cdrom
	sed -i -e '/SUBDIRS/ {s/autoconvert//; s/www//; s/player//;}' plugins/Makefile.in &&
	pkg_build_autoconf && pkg_build_slackdesc &&
	
	# cleanup
	rm -f /usr/$LIBDIR/libsven.a
}


