New package: nsxiv-27.1

This commit is contained in:
Sanjay Pavan 2021-09-18 11:48:37 +05:30 committed by Michal Vasilek
parent d0b70e65f0
commit d970edbc4a
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,31 @@
--- a/Makefile 2021-09-22 17:00:05.123980000 +0530
+++ b/Makefile 2021-09-22 16:59:53.050646000 +0530
@@ -86,7 +86,7 @@
>$(DESTDIR)$(MANPREFIX)/man1/nsxiv.1
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/nsxiv.1
@echo "INSTALL share/nsxiv/"
- install -Dt $(DESTDIR)$(PREFIX)/share/nsxiv/exec exec/*
+ install -Dt $(DESTDIR)$(PREFIX)/share/doc/nsxiv/examples exec/*
uninstall:
@echo "REMOVE bin/nsxiv"
--- a/nsxiv.1 2021-09-22 16:55:16.433967000 +0530
+++ b/nsxiv.1 2021-09-22 17:03:11.870655000 +0530
@@ -428,7 +428,7 @@
3) image height.
.P
There is also an example script installed together with nsxiv as
-.IR PREFIX/share/nsxiv/exec/image-info .
+.IR PREFIX/share/doc/nsxiv/examples/image-info .
.SH EXTERNAL KEY HANDLER
Additional external keyboard commands can be defined using a handler program
located in
@@ -446,7 +446,7 @@
keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix.
There is also an example script installed together with nsxiv as
-.IR PREFIX/share/nsxiv/exec/key-handler .
+.IR PREFIX/share/doc/nsxiv/examples/key-handler .
.SH THUMBNAIL CACHING
nsxiv stores all thumbnails under
.IR $XDG_CACHE_HOME/nsxiv/ .

21
srcpkgs/nsxiv/template Normal file
View file

@ -0,0 +1,21 @@
# Template file for 'nsxiv'
pkgname=nsxiv
version=27.1
revision=1
build_style=gnu-makefile
makedepends="libX11-devel imlib2-devel giflib-devel libexif-devel libXft-devel"
short_desc="Neo (or New or Not) Simple (or Small or Suckless) X Image Viewer"
maintainer="Sanjay Pavan <tsppavan7@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/nsxiv/nsxiv"
distfiles="https://github.com/nsxiv/nsxiv/archive/v${version}.tar.gz"
checksum=416247c6930d2a5ba482010a7c095fc3e6fe0fe609f2bce0049f69bebd63e00c
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/freetype2"
pre_build() {
[ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h ||:
}
post_install() {
vinstall nsxiv.desktop 644 usr/share/applications
}