summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorepicurious2021-06-07 10:02:13 +0100
committerepicurious2021-06-07 10:02:13 +0100
commitdb5f869a84de1071de7facf4e1bc1deba31dfffc (patch)
treeb7c1c7b8cc232e3fe9ce261d15861a84a77c99f4
downloadaur-db5f869a84de1071de7facf4e1bc1deba31dfffc.tar.gz
adding for first time
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD41
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b9de834fa38
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = bash-fuzzy-clock-git
+ pkgdesc = Script to display the time in natural language. Translated to six languages
+ pkgver = r19.265393d
+ pkgrel = 1
+ url = https://github.com/coreymwamba/bash-fuzzy-clock
+ arch = any
+ license = OSL
+ makedepends = git
+ depends = bash
+ replaces = bash-fuzzy-clock
+ source = git://github.com/coreymwamba/bash-fuzzy-clock
+ md5sums = SKIP
+
+pkgname = bash-fuzzy-clock-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..255c425140a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Corey Mwamba <contact.me@coreymwamba.co.uk>
+pkgname=bash-fuzzy-clock-git
+_pkgname=bash-fuzzy-clock
+pkgver=r19.265393d
+pkgrel=1
+pkgbase=bash-fuzzy-clock-git
+pkgdesc="Script to display the time in natural language. Translated to six languages"
+replaces=('bash-fuzzy-clock')
+arch=('any')
+url="https://github.com/coreymwamba/bash-fuzzy-clock"
+license=('OSL')
+makedepends=('git')
+depends=('bash')
+source=('git://github.com/coreymwamba/bash-fuzzy-clock')
+md5sums=('SKIP')
+pkgver() {
+ cd "$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+build() {
+ cd "$srcdir/$_pkgname"
+ msgfmt fr.po -o fr.mo
+ msgfmt de.po -o de.mo
+ msgfmt es.po -o es.mo
+ msgfmt it.po -o it.po
+ msgfmt pt.po -o pt.po
+}
+package() {
+cd "$pkgdir"
+ mkdir -p usr/bin/
+ mkdir -p usr/share/locale/{fr,es,it,de,pt_BR}/LC_MESSAGES/
+ cd "$srcdir/$_pkgname"
+ install -p -D $_pkgname.sh -m 0755 $pkgdir/usr/bin/$_pkgname
+ cp fr.mo $pkgdir/usr/share/locale/fr/LC_MESSAGES/bash-fuzzy-clock.mo
+ cp es.mo $pkgdir/usr/share/locale/es/LC_MESSAGES/bash-fuzzy-clock.mo
+ cp de.mo $pkgdir/usr/share/locale/de/LC_MESSAGES/bash-fuzzy-clock.mo
+ cp it.po $pkgdir/usr/share/locale/it/LC_MESSAGES/bash-fuzzy-clock.mo
+ cp pt.po $pkgdir/usr/share/locale/pt_BR/LC_MESSAGES/bash-fuzzy-clock.mo
+ install -p -D -m 0644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
+ install -p -D -m 0644 README.md "${pkgdir}/usr/share/doc/${_pkgname}/README"
+}