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

# source: james
TARBALL=csvfix-20150228.tar.bz2
MD5SUM=3427a36b9801c4f604d8e7e60a2145f3
SRC_URL=https://bitbucket.org/neilb/csvfix/get/93804d497be6.tar.gz
BUNDLE=

SLACKREQ='' # 
SLACKDESC="csvfix: csvfix $PKGVER (CSV file utility)  
csvfix:  
csvfix: CSVfix is a command-line tool specifically designed to manipulate CSV 
csvfix: data. Among other things, you can use it to reorder, remove, split, 
csvfix: merge fields; convert case and trim spaces; search and filter out 
csvfix: data, split and join files, etc.  
csvfix:
csvfix: Patched for regex and exec fixes.
csvfix: 
csvfix: https://bitbucket.org/neilb/csvfix/overview
csvfix: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/*csvfix*     &&
	patch -l -Np1 -i ../pkg/regex-fix.patch      &&
	patch -l -Np1 -i ../pkg/exec-fix.patch       &&
	patch -l -Np1 -i ../pkg/test-cases-fix.patch &&
	true
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/*csvfix* &&
	make lin &&
	cp csvfix/bin/csvfix /usr/bin &&
	pkg_build_slackdesc
}
