summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-21 01:23:59 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-21 01:23:59 +0000
commitb59b0b18d6398efc8d67cb3be7b1df8e6df69e9a (patch)
treedb2b2de6a409dc33aedba4771b29878b4956e5ad /user
parent464336b10a9c2e92bfe481963a66aab42668ee65 (diff)
downloadpackages-b59b0b18d6398efc8d67cb3be7b1df8e6df69e9a.tar.gz
packages-b59b0b18d6398efc8d67cb3be7b1df8e6df69e9a.tar.bz2
packages-b59b0b18d6398efc8d67cb3be7b1df8e6df69e9a.tar.xz
packages-b59b0b18d6398efc8d67cb3be7b1df8e6df69e9a.zip
user/fortune-mod: new package
Diffstat (limited to 'user')
-rw-r--r--user/fortune-mod/APKBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/user/fortune-mod/APKBUILD b/user/fortune-mod/APKBUILD
new file mode 100644
index 000000000..2a4e1c873
--- /dev/null
+++ b/user/fortune-mod/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=fortune-mod
+pkgver=2.6.2
+pkgrel=0
+pkgdesc="Display random messages or quotations"
+url="https://www.shlomifish.org/humour/fortunes/"
+arch="all"
+options="!check" # Fails due to spaces in CMake files...
+license="BSD-4-Clause"
+depends=""
+checkdepends="perl-file-find-object perl-io-all perl-test-differences
+ perl-test-runvalgrind valgrind"
+makedepends="cmake recode-dev"
+subpackages="$pkgname-doc"
+source="https://github.com/shlomif/fortune-mod/archive/$pkgname-$pkgver.tar.gz"
+builddir="$srcdir/fortune-mod-fortune-mod-$pkgver/$pkgname"
+
+prepare() {
+ cd "$builddir"
+ default_prepare
+ mkdir build
+}
+
+build() {
+ cd "$builddir"/build
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ -DNO_OFFENSIVE=True \
+ -DLOCALDIR=/usr/share/games/fortunes \
+ ${CMAKE_CROSSOPTS} \
+ ..
+ make
+}
+
+check() {
+ cd "$builddir"/build
+ make check
+}
+
+package() {
+ cd "$builddir"/build
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="e3a9cd949bc38ab3044d2b32e0a6d946d4e8e2824218927c5350c212053ba47372b9f65251cf7a9ffa263c7990aeff6929bc4273b6d57ff1c9e1ff0d6dd80aa8 fortune-mod-2.6.2.tar.gz"