aports/community/fnc/APKBUILD
2023-11-04 12:59:58 +00:00

44 lines
1.3 KiB
Plaintext

# Contributor: rubicon <rubicon@mailo.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=fnc
pkgver=0.15
pkgrel=1
pkgdesc="Interactive ncurses browser for Fossil repositories"
url="https://fnc.bsdbox.org/"
# ppc64le: 'reader.term.a' may be used uninitialized
arch="all !ppc64le"
license="ISC"
makedepends="bsd-compat-headers ncurses-dev zlib-dev"
options="!check"
subpackages="$pkgname-doc"
source="https://fnc.bsdbox.org/uv/dl/fnc-$pkgver.tar.gz
fix-name-clash.patch
maybe-uninit.patch
"
build() {
# todo: actually fix the uninit
export CFLAGS="${CFLAGS/-Os/-O2}"
make
}
check() {
./src/fnc -v
}
package() {
# workaround for Makefile not calling
# install with option to create dirs
mkdir -vp "$pkgdir"/usr/bin
make PREFIX="$pkgdir"/usr install
install -Dvm644 README.md CHANGES.md LICENSE \
-t "$pkgdir"/usr/share/doc/$pkgname
}
sha512sums="
7d566c47f51c7ff1f09afbea7540971f25f00f68a6ac591259b52c7288824b26b6dacf3e93af72a0f8103fde4bb6a280384b012126005bf19a6b17c58d600c81 fnc-0.15.tar.gz
28f8630bdb0fabd076b179dd5d3e7972c8b31f5b44a45bdeb3c995a84a14cca8e55ffd9b86084ad6b61fbff011ca5c556b3282df9cf3871b4f495f778edefeb2 fix-name-clash.patch
e5bcfe0972a3f27c68146315eb6856804d825ce40b5a053d7b7cfdfe113fdeda655acb2f3f6b8a527f356da225ec30f0ee7c951f92a9ab767859c0bb01ace362 maybe-uninit.patch
"