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

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

repo=progress
pkgname=$repo # for SLACKDESC

# [1] Master commit
# hash=595c01066a7c53f362d8b4aa61a960c5cbcfef27
# MD5SUM=1589796c5182c6576151ffa595211a36
# PKGVER=0.13.1_2017.11.06_$hash7

# hash7=${hash#???????}; hash7=${hash%$hash7}
# TARBALL=$pkgname-$hash.tar.gz
# SRC_URL=https://github.com/Xfennec/$repo/archive/$hash.tar.gz

# [2] Official release
MD5SUM=37103cc9ac32a6e8a2286c56ec5a10c2
PKGVER=0.14
TARBALL=$pkgname-$PKGVER.tar.gz
SRC_URL=https://github.com/Xfennec/$repo/archive/v$PKGVER.tar.gz

# --- common ---
PKGARCH=x86_64
PKGBUILD=1
BUNDLE=

SLACKREQ='libncurses'
SLACKDESC="$pkgname: $pkgname $PKGVER (coreutils progress viewer)
$pkgname: 
$pkgname: A tiny command that looks in /proc for running coreutils basic commands (cp,
$pkgname: mv, dd, tar, gzip/gunzip, cat, etc.) and displays the percentage of copied
$pkgname: data, estimated time and throughput, and provides a top-like monitoring mode.
$pkgname: 
$pkgname: 
$pkgname: License: GNU GPL v3
$pkgname: 
$pkgname: https://github.com/Xfennec/progress
$pkgname: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/$pkgname-${hash:-$PKGVER} &&
	sed -e 's/.PKG_CONFIG. ncurses\b/&w/' -i Makefile &&
	patch -i ../pkg/upstream-PR-122-extend-watch-to-process-group.patch
}
### build
pkg_build() {
	cd tmp/$pkgname-${hash:-$PKGVER} &&
	make PREFIX=/usr progress install &&
	pkg_build_slackdesc
}
### package
pkg_package() {
	# in $CHROOT_DIR
	: sample rm -r usr/local
}
# vim: fdm=marker ft=sh:
