summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2015-07-31 17:10:09 -0700
committerAndy Weidenbaum2015-07-31 17:10:09 -0700
commitcc68045af95e4a3b8ba17b91ea56d406586f9ce2 (patch)
tree41658a2a5faf51b027ad7cf288967bb6b56a2ce0
downloadaur-cc68045af95e4a3b8ba17b91ea56d406586f9ce2.tar.gz
Initial import
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD45
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..80c3c7a1a17
--- /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 00000000000..1a436029795
--- /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
+}