summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorambiso2019-05-19 16:38:07 +0200
committerambiso2019-05-19 16:38:07 +0200
commit7d7b17ce8623a96c8b21d98b7c84fa9c2dd8cdd6 (patch)
tree79612143be6a45200bd947b43d8def4e43c07bf4
downloadaur-ledger2beancount-git.tar.gz
Initial
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD22
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0bd894bc4ee
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = ledger2beancount-git
+ pkgdesc = Ledger to Beancount text-based converter
+ pkgver = 1.7
+ pkgrel = 1
+ url = https://github.com/zacchiro/ledger2beancount
+ arch = any
+ license = GPL
+ depends = perl
+ depends = perl-carp-assert
+ depends = perl-config-onion
+ depends = perl-date-calc
+ depends = perl-datetime-format-strptime
+ depends = perl-file-basedir
+ depends = perl-getopt-long-descriptive
+ depends = perl-yaml-libyaml
+ source = ledger2beancount::git+https://github.com/zacchiro/ledger2beancount.git
+ md5sums = SKIP
+
+pkgname = ledger2beancount-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0e458bf0e13
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,22 @@
+# Maintainer: crave <crave@invalid.org>
+
+_pkgname=ledger2beancount
+pkgname="${_pkgname}-git"
+pkgver=1.7
+pkgrel=1
+pkgdesc='Ledger to Beancount text-based converter'
+arch=('any')
+url="https://github.com/zacchiro/ledger2beancount"
+license=('GPL')
+depends=('perl' 'perl-carp-assert' 'perl-config-onion' 'perl-date-calc'
+ 'perl-datetime-format-strptime' 'perl-file-basedir'
+ 'perl-getopt-long-descriptive' 'perl-yaml-libyaml')
+source=("${_pkgname}::git+${url}.git")
+md5sums=('SKIP')
+
+package() {
+ cd "$srcdir/$_pkgname"
+ install -Dm755 bin/ledger2beancount "${pkgdir}/usr/bin/ledger2beancount"
+ install -Dm755 bin/ledger2beancount-ledger-config "${pkgdir}/usr/bin/ledger2beancount-ledger-config"
+ install -Dm644 ledger2beancount.yml "${pkgdir}/usr/share/doc/ledger2beancount/ledger2beancount.yml"
+}