### this file is sourced not run
# source: step

# Build [1] master commit or [2] official release

repo=pdf2svg
pkgname=$repo # for SLACKDESC

# # [1] Master commit
# hash=0515541debd0ffcbad129d0c8f3cf64bdcd1ca8b
# MD5SUM=

# hash7=${hash#???????}; hash7=${hash%$hash7}
# PKGVER=0.2.3_2017.03.27_$hash7
# TARBALL=$repo-$hash.tar.gz
# SRC_URL=https://github.com/dawbarton/$repo/archive/$hash.tar.gz

# [2] Official release

MD5SUM=d398b3b1c1979f554596238a44f12123
PKGVER=0.2.3
TARBALL=$pkgname-$PKGVER.tar.gz
SRC_URL=https://github.com/dawbarton/$repo/archive/v$PKGVER.tar.gz

# --- common ---

PKGARCH=x86_64
PKGBUILD=1
BUNDLE=

SLACKREQ='cairo'
SLACKSUG=''
SLACKDESC="$pkgname: $pkgname $PKGVER (image convert)
$pkgname: 
$pkgname: A simple PDF to SVG converter using the Poppler and Cairo libraries.
$pkgname: See also:
$pkgname: https://superuser.com/questions/198460/converting-from-eps-to-svg-format 
$pkgname: 
$pkgname: License: GPL2
$pkgname: 
$pkgname: Home page: https://github.com/dawbarton/pdf2svg
$pkgname: 
$pkgname: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/${repo:-$pkgname}-* &&
	sed -i configure.ac -e "/AC_INIT/s/0\.2\.1/$PKGVER/"
}

### build
pkg_build() {
	export MAKE="make $MAKEFLAGS"
	cd tmp/${repo:-$pkgname}-* &&
	if true || [ "$hash" ]; then autoreconf -fiv; fi &&
	./configure $CONFFLAGS &&
	make $MAKEFLAGS && make $MAKEINSTALLFLAGS install &&
	pkg_build_slackdesc
}

# pkg_package() {
# 	# in $CHROOT_DIR
# 	: sample rm -r usr/local
# }

# vim: fdm=marker ft=sh:

