[arch-commits] Commit in fortune-mod/repos/community-x86_64 (PKGBUILD PKGBUILD)
Kyle Keen
kkeen at archlinux.org
Thu Jan 24 00:10:11 UTC 2019
Date: Thursday, January 24, 2019 @ 00:10:10
Author: kkeen
Revision: 427421
archrelease: copy trunk to community-x86_64
Added:
fortune-mod/repos/community-x86_64/PKGBUILD
(from rev 427420, fortune-mod/trunk/PKGBUILD)
Deleted:
fortune-mod/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 98 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 49 insertions(+), 49 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-01-24 00:09:47 UTC (rev 427420)
+++ PKGBUILD 2019-01-24 00:10:10 UTC (rev 427421)
@@ -1,49 +0,0 @@
-# Maintainer: Kevin Piche <kevin at archlinux.org>
-# Contributor: Dale Blount <archlinux at dale.us>
-
-pkgname=fortune-mod
-pkgver=2.6.1
-pkgrel=1
-pkgdesc="The Fortune Cookie Program from BSD games"
-arch=('x86_64')
-url="http://www.shlomifish.org/open-source/projects/fortune-mod/"
-license=('BSD')
-depends=('recode')
-makedepends=('cmake')
-source=("https://github.com/shlomif/fortune-mod/archive/fortune-mod-$pkgver.tar.gz")
-md5sums=('a196c41bc89a6ca018c100ea03c44b4f')
-
-prepare() {
- cd "$srcdir/fortune-mod-fortune-mod-$pkgver/fortune-mod"
- # probably a better way to do this but it is baked in hard
- sed -i 's|/games/|/|' CMakeLists.txt
- sed -i 's|"sbin"|"bin"|' CMakeLists.txt
- sed -i 's|"games"|"bin"|' CMakeLists.txt
- sed -i 's|/games/fortunes|/fortune|' datfiles/{,off/}CMakeLists.txt
-}
-
-build() {
- cd "$srcdir/fortune-mod-fortune-mod-$pkgver/fortune-mod"
- mkdir -p build
- cd build
- cmake .. \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DNO_OFFENSIVE=OFF \
- -DLOCALDIR=/usr/share/fortune/ \
- -DLOCALODIR=/usr/share/fortune/off/ \
- -DCOOKIEDIR=/usr/share/fortune/ \
- -DOCOOKIEDIR=/usr/share/fortune/off/
- make REGEXDEFS='-DHAVE_REGEX_H -DPOSIX_REGEX -DHAVE_STDBOOL'
-}
-
-package() {
- cd "$srcdir/fortune-mod-fortune-mod-$pkgver/fortune-mod/build"
- make DESTDIR="$pkgdir" \
- FORTDIR="$pkgdir/usr/bin" \
- COOKIEDIR="$pkgdir/usr/share/fortune" \
- BINDIR="$pkgdir/usr/bin" \
- BINMANDIR="$pkgdir/usr/share/man/man1" \
- FORTMANDIR="$pkgdir/usr/share/man/man6" install
- rm "$pkgdir/usr/share/fortune/"{,off/}*.u8
- install -Dm644 ../../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
Copied: fortune-mod/repos/community-x86_64/PKGBUILD (from rev 427420, fortune-mod/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-01-24 00:10:10 UTC (rev 427421)
@@ -0,0 +1,49 @@
+# Maintainer: Kevin Piche <kevin at archlinux.org>
+# Contributor: Dale Blount <archlinux at dale.us>
+
+pkgname=fortune-mod
+pkgver=2.6.2
+pkgrel=1
+pkgdesc="The Fortune Cookie Program from BSD games"
+arch=('x86_64')
+url="http://www.shlomifish.org/open-source/projects/fortune-mod/"
+license=('BSD')
+depends=('recode')
+makedepends=('cmake')
+source=("https://github.com/shlomif/fortune-mod/archive/fortune-mod-$pkgver.tar.gz")
+md5sums=('59580c8fc2f26ed0b9a1e0a13257bfdf')
+
+prepare() {
+ cd "$srcdir/fortune-mod-fortune-mod-$pkgver/fortune-mod"
+ # probably a better way to do this but it is baked in hard
+ sed -i 's|/games/|/|' CMakeLists.txt
+ sed -i 's|"sbin"|"bin"|' CMakeLists.txt
+ sed -i 's|"games"|"bin"|' CMakeLists.txt
+ sed -i 's|/games/fortunes|/fortune|' datfiles/{,off/}CMakeLists.txt
+}
+
+build() {
+ cd "$srcdir/fortune-mod-fortune-mod-$pkgver/fortune-mod"
+ mkdir -p build
+ cd build
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DNO_OFFENSIVE=OFF \
+ -DLOCALDIR=/usr/share/fortune/ \
+ -DLOCALODIR=/usr/share/fortune/off/ \
+ -DCOOKIEDIR=/usr/share/fortune/ \
+ -DOCOOKIEDIR=/usr/share/fortune/off/
+ make REGEXDEFS='-DHAVE_REGEX_H -DPOSIX_REGEX -DHAVE_STDBOOL'
+}
+
+package() {
+ cd "$srcdir/fortune-mod-fortune-mod-$pkgver/fortune-mod/build"
+ make DESTDIR="$pkgdir" \
+ FORTDIR="$pkgdir/usr/bin" \
+ COOKIEDIR="$pkgdir/usr/share/fortune" \
+ BINDIR="$pkgdir/usr/bin" \
+ BINMANDIR="$pkgdir/usr/share/man/man1" \
+ FORTMANDIR="$pkgdir/usr/share/man/man6" install
+ rm "$pkgdir/usr/share/fortune/"{,off/}*.u8
+ install -Dm644 ../../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list