Add fortune-mod/APKBUILD

This commit is contained in:
Nova Cat 2025-02-08 22:19:53 -08:00
parent 4254893412
commit e046841ad0

28
fortune-mod/APKBUILD Normal file
View file

@ -0,0 +1,28 @@
maintainer="Swee <meow@swee.codes>"
pkgname=fortune-mod
pkgver=
pkgrel=0
pkgdesc="A fortune implementation made by Shlomi Fish"
url="https://www.shlomifish.org/open-source/projects/fortune-mod/"
arch="x86_64"
provides="cmd:fortune"
# license=""
makedepends="perl-dev recode-dev docbook-xml docbook-xsl cmake doxygen libxslt wget xz tar"
# source="https://github.com/shlomif/fortune-mod/releases/download/fortune-mod-3.24.0/fortune-mod-3.24.0.tar.xz"
build() {
wget -O fortune-mod.tar.xz https://github.com/shlomif/fortune-mod/releases/download/fortune-mod-3.24.0/fortune-mod-3.24.0.tar.xz
xz -d fortune-mod.tar.xz
tar -xf fortune-mod.tar
rm fortune-mod.tar
mv fortune-mod-* fortune-mod
mkdir fortune-mod/build
cd fortune-mod/build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
export DESTDIR=$pkgdir
make install
}