summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhuoyun Wei2018-03-30 20:40:21 +0800
committerZhuoyun Wei2018-03-30 20:40:21 +0800
commit1304fc2a00dbe1527becab8850e7697ca11fca91 (patch)
tree2701660ae32ae8859f337e10fbe7a6c6fa2b91ac
downloadaur-1304fc2a00dbe1527becab8850e7697ca11fca91.tar.gz
1.0
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD21
3 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d9c70f91dd5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = ledger2beancount
+ pkgdesc = Ledger to Beancount text-based converter
+ pkgver = 1.0
+ 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-xs
+ source = https://github.com/zacchiro/ledger2beancount/archive/1.0.tar.gz
+ sha256sums = 14fd98c8d1c8021147a7e241df97216e9f9ab81ad4d075de9d0d006e69a043a6
+
+pkgname = ledger2beancount
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..70926b4c06c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg/
+src/
+*.tar
+*.tar.gz
+*.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..59740228a5a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Zhuoyun Wei <wzyboy@wzyboy.org>
+
+pkgname=ledger2beancount
+pkgver=1.0
+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-xs')
+source=("https://github.com/zacchiro/ledger2beancount/archive/${pkgver}.tar.gz")
+sha256sums=('14fd98c8d1c8021147a7e241df97216e9f9ab81ad4d075de9d0d006e69a043a6')
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ 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"
+}