diff options
author | Chuan Ji | 2020-05-19 23:43:31 -0700 |
---|---|---|
committer | Chuan Ji | 2020-05-19 23:43:31 -0700 |
commit | 31a7d680ee71628c6401c7d2d039c97fc8362475 (patch) | |
tree | 228003dc3836be818a584bcd96a00a1d78310052 | |
download | aur-31a7d680ee71628c6401c7d2d039c97fc8362475.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..66c3657ed67f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = jfbview-git + pkgdesc = PDF and image viewer for the Linux framebuffer + pkgver = r327.25a9e8b + pkgrel = 1 + url = https://github.com/jichu4n/jfbview + arch = i686 + arch = x86_64 + arch = armv6h + arch = armv7h + arch = aarch64 + license = Apache + makedepends = cmake + depends = ncurses + depends = imlib2 + conflicts = jfbpdf + conflicts = jfbview + replaces = jfbpdf + replaces = jfbview + source = git+https://github.com/jichu4n/jfbview.git + sha512sums = SKIP + +pkgname = jfbview-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..16f6e8779644 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Chuan Ji <chuan@jichu4n.com> + +pkgname=jfbview-git +pkgver=r327.25a9e8b +pkgrel=1 +pkgdesc="PDF and image viewer for the Linux framebuffer" +arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') +url="https://github.com/jichu4n/jfbview" +license=('Apache') +makedepends=('cmake') +depends=('ncurses' 'imlib2') +conflicts=('jfbpdf' 'jfbview') +replaces=('jfbpdf' 'jfbview') +source=("git+${url}.git") +sha512sums=('SKIP') +_pkgname='jfbview' + +pkgver() { + cd "${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${srcdir}/${_pkgname}" + git submodule update --init --recursive +} + +build(){ + cd "${srcdir}/${_pkgname}" + cmake -H. -Bbuild \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + cmake --build build +} + +package(){ + cd "${srcdir}/${_pkgname}/build" + make DESTDIR="${pkgdir}" install +} + +# vim:set ts=2 sw=2 et: |