diff options
author | Jingbei Li | 2022-08-12 20:33:57 +0800 |
---|---|---|
committer | Jingbei Li | 2022-08-12 20:33:57 +0800 |
commit | e46f446b523826c42103385536116691fe13d6e8 (patch) | |
tree | 0e1242dc94063ef83b7ff6b1cfe7df2d01c162ca /PKGBUILD | |
parent | 89ebe011dab3aa04a35045258e94c7b3ee7729c0 (diff) | |
download | aur-jfbview.tar.gz |
follow the PKGBUILD of the git version
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 16 insertions, 12 deletions
@@ -1,22 +1,26 @@ -# Maintainer: farseerfc <farseerfc@archlinuxcn.org> -# Contributor: Chuan Ji <ji@chu4n.com> +# Maintainer: Chuan Ji <chuan@jichu4n.com> +# Contributor: farseerfc <farseerfc@archlinuxcn.org> pkgname=jfbview pkgver=0.6.0 -pkgrel=2 +pkgrel=3 pkgdesc="PDF and image viewer for the Linux framebuffer" -arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') +arch=('i686' 'pentium4' 'x86_64' 'armv6h' 'armv7h' 'aarch64') url="https://github.com/jichu4n/jfbview" license=('Apache') -makedepends=('cmake') -depends=('ncurses' 'imlib2' 'libjpeg-turbo') -conflicts=('jfbpdf') -replaces=('jfbpdf') -source=("https://github.com/jichu4n/jfbview/releases/download/${pkgver}/jfbview-${pkgver}-full-source.zip") -md5sums=('ac41da35a97c008424662d7dc489b841') +makedepends=('cmake' 'git') +depends=('freetype2' 'harfbuzz' 'imlib2' 'libjpeg-turbo' 'ncurses' 'openjpeg2' 'zlib') +source=("git+${url}.git#tag=${pkgver}") +sha512sums=('SKIP') + +prepare() { + cd "${srcdir}/${pkgname}" + git submodule update --init --recursive +} build(){ - cd "${srcdir}/${pkgname}-${pkgver}-full-source" + cd "${srcdir}/${pkgname}" + LDFLAGS='-lImlib2' \ cmake -H. -Bbuild \ -DBUILD_TESTING=OFF \ -DCMAKE_BUILD_TYPE=Release \ @@ -25,7 +29,7 @@ build(){ } package(){ - cd "${srcdir}/${pkgname}-${pkgver}-full-source/build" + cd "${srcdir}/${pkgname}/build" make DESTDIR="${pkgdir}" install } |