diff options
Diffstat (limited to 'user/fortune-mod/APKBUILD')
-rw-r--r-- | user/fortune-mod/APKBUILD | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/user/fortune-mod/APKBUILD b/user/fortune-mod/APKBUILD index 2a4e1c873..f3be67c18 100644 --- a/user/fortune-mod/APKBUILD +++ b/user/fortune-mod/APKBUILD @@ -1,7 +1,7 @@ # Contributor: A. Wilcox <awilfox@adelielinux.org> # Maintainer: A. Wilcox <awilfox@adelielinux.org> pkgname=fortune-mod -pkgver=2.6.2 +pkgver=2.10.0 pkgrel=0 pkgdesc="Display random messages or quotations" url="https://www.shlomifish.org/humour/fortunes/" @@ -16,39 +16,29 @@ 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 + -Bbuild \ + . + make -C build } check() { - cd "$builddir"/build - make check + make -C build check } package() { - cd "$builddir"/build - make DESTDIR="$pkgdir" install + make DESTDIR="$pkgdir" -C build install } -sha512sums="e3a9cd949bc38ab3044d2b32e0a6d946d4e8e2824218927c5350c212053ba47372b9f65251cf7a9ffa263c7990aeff6929bc4273b6d57ff1c9e1ff0d6dd80aa8 fortune-mod-2.6.2.tar.gz" +sha512sums="f5776d3afc52859b8959b0a51fc0dd57665b7d35b046958e6a08f29f9ad7915957ec4fec6b38d08a797a05163cc20a47e62a4e3d65034084e2003b8a69cc90e1 fortune-mod-2.10.0.tar.gz" |