37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# Template file for 'sblg'
|
|
pkgname=sblg
|
|
version=0.5.11
|
|
revision=1
|
|
build_style=configure
|
|
configure_args="PREFIX=/usr MANDIR=/usr/share/man"
|
|
hostmakedepends="which"
|
|
makedepends="expat-devel"
|
|
short_desc="Simple off-line blog utility"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="ISC"
|
|
homepage="https://kristaps.bsd.lv/sblg/"
|
|
changelog="https://kristaps.bsd.lv/sblg/archive.html"
|
|
distfiles="https://kristaps.bsd.lv/sblg/snapshots/${pkgname}-${version}.tar.gz"
|
|
checksum=f178b6c9b50f87155cf5f06a7b8511e65ffa0cfc48e5097488d12bcce69d81ed
|
|
|
|
pre_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
case $XBPS_TARGET_MACHINE in
|
|
*-musl) echo HAVE___PROGNAME=true HAVE_ERR=1 HAVE_MEMMEM=1\
|
|
HAVE_MEMCHR=1 HAVE_PROGRAM_INVOCATION_SHORT_NAME=1\
|
|
HAVE_SECCOMP_FILTER=1 HAVE_SOCK_NONBLOCK=1\
|
|
HAVE_STRLCAT=1 HAVE_STRCPY=1\
|
|
> configure.local;;
|
|
*) echo HAVE___PROGNAME=true HAVE_ERR=1 HAVE_MEMMEM=1\
|
|
HAVE_MEMCHR=1 HAVE_PROGRAM_INVOCATION_SHORT_NAME=1\
|
|
HAVE_SECCOMP_FILTER=1 HAVE_SOCK_NONBLOCK=1\
|
|
HAVE_EXPLICIT_BZERO=1\
|
|
> configure.local;;
|
|
esac
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
head -n16 article.c > COPYING
|
|
vlicense COPYING
|
|
}
|