summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAurélien DESBRIÈRES <aurelien@hackers.camp>2016-11-06 18:15:13 +0100
committerAurélien DESBRIÈRES <aurelien@hackers.camp>2016-11-06 18:15:13 +0100
commit6e80fe0abc02156d5b164358ad428cd49ec6747a (patch)
treed4500284c37288b35ed815c7737f08328a2b787e /PKGBUILD
Read The Fucking Manual - Fortune modHEADmaster
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..f4a89af
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Contributor: aurélien DESBRIÈRES <aurelien@hackers.camp>
+
+pkgname=fortune-mod-rtfm
+pkgver=20161104
+pkgrel=4
+pkgdesc="Fortune cookies: Read The Fucking Manual! Because most of people read them to late."
+arch=('any')
+license=('custom')
+depends=('fortune-mod')
+groups=('fortune-mods')
+source=('fortune-rtfm')
+md5sums=('60c61f79673ba6528adb4398ed64bd50')
+url="ftp://ftp.hackers.camp/fortune-rtfm"
+
+build() {
+ if true; then # change true to false to have pure ASCII quotes
+ cp "${srcdir}/fortune-rtfm" "${srcdir}/rtfm"
+ else
+ sed "s/’/'/g; s/é/e/g; s/è/e/g;" "${srcdir}/fortune-rtfm" > "${srcdir}/rtfm"
+ fi
+ strfile "${srcdir}/rtfm" "${srcdir}/rtfm.dat"
+}
+
+package() {
+ install -D -m644 "${srcdir}/rtfm" "${pkgdir}/usr/share/fortune/rtfm"
+ install -D -m644 "${srcdir}/rtfm.dat" "${pkgdir}/usr/share/fortune/rtfm.dat"
+}
+
+md5sums=('3eb6def3cbff562feb545f73fbc0a0d3')