summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Birdgeneau2021-06-24 23:02:30 -0600
committerMike Birdgeneau2021-06-24 23:02:30 -0600
commit0cb2d451e00ba16a0369ae9fcc1254c62b8f6784 (patch)
tree47fec83a6441cac0dbc43bfa8952033db95e413e
downloadaur-0cb2d451e00ba16a0369ae9fcc1254c62b8f6784.tar.gz
Initial Commit.
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD41
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..29f03b17b1c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = fortune-mod-canada-nctr
+ pkgdesc = Fortune quotes from the Truth and Reconciliation Commission of Canada Calls to Action
+ pkgver = 20210624
+ pkgrel = 1
+ url = https://github.com/mikebirdgeneau/fortune-mod-canada-nctr
+ arch = any
+ groups = fortune-mods
+ license = Public domain
+ makedepends = curl
+ depends = fortune-mod
+
+pkgname = fortune-mod-canada-nctr
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9f86adc4cbc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Mike Birdgeneau <mike.birdgeneau@gmail.com>
+pkgname=fortune-mod-canada-nctr
+pkgver=20210624
+pkgrel=1
+pkgdesc="Fortune quotes from the Truth and Reconciliation Commission of Canada Calls to Action"
+arch=('any')
+url="https://github.com/mikebirdgeneau/fortune-mod-canada-nctr"
+license=('Public domain')
+depends=('fortune-mod')
+makedepends=('curl')
+groups=('fortune-mods')
+
+_dlurl='https://raw.githubusercontent.com/mikebirdgeneau/fortune-mod-canada-nctr/main/nctr'
+_verurl="https://raw.githubusercontent.com/mikebirdgeneau/fortune-mod-canada-nctr/main/VERSION"
+
+pkgver()
+{
+ curl -fL -Ro "${srcdir}/version" "${_verurl}"
+ cat "${srcdir}/version"
+}
+
+prepare()
+{
+ msg2 "Downloading data file..."
+ curl -Ro "${srcdir}/nctr" "${_dlurl}"
+}
+
+build()
+{
+ strfile "${srcdir}/nctr"
+ cd "${srcdir}"
+
+}
+
+package()
+{
+ cd "${srcdir}"
+ install -D -m644 nctr "${pkgdir}/usr/share/fortune/canada-nctr"
+ install -D -m644 nctr.dat "${pkgdir}/usr/share/fortune/canada-nctr.dat"
+}
+