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

# source: james
TARBALL=fossil-src-$PKGVER.tar.gz
MD5SUM=53f8145084a2065d6cb734980c172c7e
#SRC_URL=http://distro.ibiblio.org/fatdog/source/700/$TARBALL
SRC_URL=https://www.fossil-scm.org/download/$TARBALL
BUNDLE=

SLACKREQ='openssl libfuse'
SLACKDESC="fossil: fossil $PKGVER (Fossil SCM)  
fossil:  
fossil: Fossil is a distributed version control systems (also known as source 
fossil: code management - SCM). In addition to the usual SCM functions, Fossil 
fossil: comes with built-in bug tracker, wiki, events/milestones and 
fossil: web-interface.  
fossil: 
fossil: 
fossil: 
fossil: 
fossil:
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/fossil*
	
	### old way to build
	# make $MAKEFLAGS -f Makefile.classic &&
	# cp fossil /usr/bin &&
		
	### modern build, needed to support "fossil fuse" command
	./configure --prefix=/usr &&
	make $MAKEFLAGS && make install &&

	pkg_build_slackdesc
}


