35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Template file for 'nsxiv'
|
|
pkgname=nsxiv
|
|
version=32
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_install_target=install-all
|
|
makedepends="libX11-devel imlib2-devel giflib-devel libexif-devel libXft-devel
|
|
libwebp-devel freetype-devel fontconfig-devel"
|
|
short_desc="Neo (or New or Not) Simple (or Small or Suckless) X Image Viewer"
|
|
maintainer="Sanjay Pavan <withercubes@protonmail.com>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://codeberg.org/nsxiv/nsxiv"
|
|
changelog="https://codeberg.org/nsxiv/nsxiv/raw/branch/master/CHANGELOG.md"
|
|
distfiles="https://codeberg.org/nsxiv/nsxiv/archive/v${version}.tar.gz"
|
|
checksum=09d1d72b3cbcf17a04e26beb5e81acc9495aaba1f8f1be907bdcd8e4e3007db3
|
|
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/freetype2"
|
|
|
|
pre_build() {
|
|
[ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h ||:
|
|
}
|
|
|
|
post_install() {
|
|
ln -sf nsxiv "${DESTDIR}/usr/bin/sxiv"
|
|
ln -sf nsxiv.1 "${DESTDIR}/usr/share/man/man1/sxiv.1"
|
|
}
|
|
|
|
sxiv_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - (transitional package)"
|
|
pkg_install() {
|
|
vmove usr/bin/sxiv
|
|
vmove usr/share/man/man1/sxiv.1
|
|
}
|
|
}
|