diff options
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..80c3c7a1a175 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = progress-git + pkgdesc = Shows running coreutils basic commands and displays stats + pkgver = 20150731 + pkgrel = 1 + url = https://github.com/Xfennec/progress + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = gcc + makedepends = git + makedepends = make + depends = ncurses + provides = progress + conflicts = progress + replaces = cv + source = git+https://github.com/Xfennec/progress + sha256sums = SKIP + +pkgname = progress-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1a436029795a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Andy Weidenbaum <archbaum@gmail.com> +# Contributor: Aurélien Chabot <contact@aurelienchabot.fr> +# Contributor: Étienne Deparis <etienne@depar.is> + +pkgname=progress-git +pkgdesc="Shows running coreutils basic commands and displays stats" +pkgver=20150731 +pkgrel=1 +arch=('i686' 'x86_64') +depends=('ncurses') +makedepends=('gcc' 'git' 'make') +url="https://github.com/Xfennec/progress" +license=('GPL3') +source=(git+https://github.com/Xfennec/progress) +sha256sums=('SKIP') +replaces=('cv') +provides=('progress') +conflicts=('progress') + +pkgver() { + cd ${pkgname%-git} + git log -1 --format="%cd" --date=short | sed "s|-||g" +} + +build() { + cd ${pkgname%-git} + + msg2 'Building...' + make +} + +package() { + cd ${pkgname%-git} + + msg2 'Installing license...' + install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE" + + msg2 'Installing documentation...' + for _doc in capture.png README.md; do + install -Dm 644 "$_doc" "$pkgdir/usr/share/doc/${pkgname%-git}/$_doc" + done + + msg2 'Installing...' + make DESTDIR="$pkgdir" PREFIX="/usr" install +} |