summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2015-11-17 11:41:15 -0800
committerAndy Weidenbaum2015-11-17 11:41:15 -0800
commit87248d5795f261c6681012c94d955d0b0d041e6b (patch)
tree45da53a07dbbae353449d01e85086b5c8795bdb1
downloadaur-87248d5795f261c6681012c94d955d0b0d041e6b.tar.gz
Initial import
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD61
2 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..01d1621844d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = hledger-git
+ pkgdesc = The hledger command-line and web-based accounting tool
+ pkgver = 20151116
+ pkgrel = 1
+ url = http://hledger.org
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ makedepends = haskell-stack
+ makedepends = ncurses
+ provides = hledger
+ provides = hledger-ui
+ provides = hledger-web
+ conflicts = hledger
+ conflicts = hledger-ui
+ conflicts = hledger-web
+ options = strip
+ source = git+https://github.com/simonmichael/hledger
+ sha256sums = SKIP
+
+pkgname = hledger-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c7749aa8055
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,61 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=hledger-git
+pkgver=20151116
+pkgrel=1
+pkgdesc="The hledger command-line and web-based accounting tool"
+arch=('i686' 'x86_64')
+makedepends=('git' 'haskell-stack' 'ncurses')
+url="http://hledger.org"
+license=('GPL3')
+options=('strip')
+source=(git+https://github.com/simonmichael/hledger)
+sha256sums=('SKIP')
+provides=('hledger' 'hledger-ui' 'hledger-web')
+conflicts=('hledger' 'hledger-ui' 'hledger-web')
+
+pkgver() {
+ cd ${pkgname%-git}
+ git log -1 --format="%cd" --date=short | sed "s|-||g"
+}
+
+package() {
+ cd ${pkgname%-git}
+
+ msg2 'Installing license...'
+ install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/hledger"
+
+ msg2 'Installing documentation...'
+ install -dm 755 "$pkgdir/usr/share/doc/hledger"
+ for _doc in README.md \
+ data \
+ doc/ANNOUNCE \
+ doc/CHANGES \
+ extra \
+ hledger/hledger.1.md \
+ hledger-lib/hledger_csv.5.md \
+ hledger-lib/hledger_journal.5.md \
+ hledger-lib/hledger_timelog.5.md \
+ hledger-ui/hledger-ui.1.md \
+ hledger-web/hledger-web.1.md \
+ site \
+ tools; do
+ cp -dpr --no-preserve=ownership $_doc "$pkgdir/usr/share/doc/hledger"
+ done
+
+ msg2 'Installing manuals...'
+ for _man1 in hledger/hledger.1 \
+ hledger-ui/hledger-ui.1 \
+ hledger-web/hledger-web.1; do
+ install -Dm 644 $_man1 -t "$pkgdir/usr/share/man/man1"
+ done
+ for _man5 in hledger-lib/hledger_csv.5 \
+ hledger-lib/hledger_journal.5 \
+ hledger-lib/hledger_timelog.5; do
+ install -Dm 644 $_man5 -t "$pkgdir/usr/share/man/man5"
+ done
+
+ msg2 'Installing...'
+ mkdir -p "$pkgdir/usr/bin"
+ stack --local-bin-path "$pkgdir/usr/bin" install
+}