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

# source: james
TARBALL=wxHexEditor-v${PKGVER}-src.tar.xz
MD5SUM=6e54b7e640bf5296137b765488ec78a6
SRC_URL=http://downloads.sourceforge.net/wxhexeditor/$TARBALL
BUNDLE=

SLACKREQ='wxwidgets libmhash libdisasm'
SLACKDESC="wxhexeditor: wxhexeditor $PKGVER (Hex editor)
wxhexeditor: 
wxhexeditor: GUI-based versatile hex editor, able to handle large files up to 
wxhexeditor: exabytes in size.
wxhexeditor: 
wxhexeditor: http://www.wxhexeditor.org/home.php
wxhexeditor: 
wxhexeditor: 
wxhexeditor: 
wxhexeditor: 
wxhexeditor: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/wxHexEditor* &&
	
	tar -xf ../pkg/wxhexeditor_0.24+repack-2.debian.tar.xz &&
	while read -r p; do
		patch -Np1 -i debian/patches/$p || return 1
	done < debian/patches/series &&

	true
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/wxHexEditor*
	sed -i -e '/CC =/d; /CXX =/d' Makefile &&
	make PREFIX=/usr && make PREFIX=/usr install &&
	pkg_build_slackdesc
}


