summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChuan Ji2020-05-28 12:03:41 -0700
committerChuan Ji2020-05-28 12:03:41 -0700
commitc1e45eb91b559e058f0272b996e331a4fdabf621 (patch)
treed0e74b4fcb279c9830c26b998e2902c1819ed8db /PKGBUILD
parentfcf830055c3436b7e3e920a0d0e2298e7a6e9582 (diff)
downloadaur-c1e45eb91b559e058f0272b996e331a4fdabf621.tar.gz
Update to 0.6.0.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 17 insertions, 20 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 51e957d96ca..9eec78a5046 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,34 +2,31 @@
# Contributor: Chuan Ji <ji@chu4n.com>
pkgname=jfbview
-pkgver=0.5.7
+pkgver=0.6.0
pkgrel=1
-pkgdesc="a PDF and image viewer for the Linux framebuffer"
-arch=('i686' 'x86_64')
+pkgdesc="PDF and image viewer for the Linux framebuffer"
+arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/jichu4n/jfbview"
license=('Apache')
-depends=('libmupdf' 'imlib2' 'openjpeg2' 'jbig2dec')
-conflicts=('jfbpdf')
-replaces=('jfbpdf')
-source=("https://github.com/jichu4n/jfbview/archive/${pkgver}.tar.gz")
-sha512sums=('56bef21dcf7445c4a8e7e71858fa49470f8f6db637a7c350ec23f8430cf0eab9d4444a891992129f4d69e954ba28f5fa7cb19da2168d442b576cc22365153919')
-
-_pkgname='jfbview'
-_binname='jfbview'
+makedepends=('cmake')
+depends=('ncurses' 'imlib2' 'libjpeg-turbo')
+conflicts=('jfbpdf' 'jfbview')
+replaces=('jfbpdf' 'jfbview')
+source=("https://github.com/jichu4n/jfbview/releases/download/${pkgver}/jfbview-${pkgver}-full-source.zip")
+md5sums=('ac41da35a97c008424662d7dc489b841')
build(){
- cd "${srcdir}/${_pkgname}-${pkgver}"
- make
+ cd "${srcdir}/${pkgname}-${pkgver}-full-source"
+ cmake -H. -Bbuild \
+ -DBUILD_TESTING=OFF \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ cmake --build build
}
package(){
- cd "${srcdir}/${_pkgname}-${pkgver}"
- install -Dm755 "./${_binname}" "${pkgdir}/usr/bin/${_binname}"
- install -Dm755 "./jpdfcat" "${pkgdir}/usr/bin/jpdfcat"
- install -Dm755 "./jpdfgrep" "${pkgdir}/usr/bin/jpdfgrep"
- install -Dm644 "./README" "$pkgdir/usr/share/doc/${_binname}/README"
- cat "./${_binname}.1" | gzip > "./${_binname}.1.gz"
- install -Dm644 "./${_binname}.1.gz" "$pkgdir/usr/share/man/man1/${_binname}.1.gz"
+ cd "${srcdir}/${pkgname}-${pkgver}-full-source/build"
+ make DESTDIR="${pkgdir}" install
}
# vim:set ts=2 sw=2 et: