summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrainDamage2016-10-04 20:39:12 +0200
committerBrainDamage2016-10-04 20:39:12 +0200
commitab5c0c8454484b6fed690a5bf27910c63bab7973 (patch)
treec01635534d8e768573025839df37a866164d52ad
downloadaur-sdump-git.tar.gz
initial version
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD49
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0b947b3fc49
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = sdump-git
+ pkgdesc = sixel variant of idump with a w3mimgdisplay-compatible program
+ pkgver = 20161004.c5fb55b
+ pkgrel = 1
+ url = https://github.com/uobikiemukot/sdump/
+ arch = i686
+ arch = x86_64
+ license = MIT
+ depends = libjpeg-turbo
+ depends = libpng
+ depends = libsixel
+ optdepends = wget: to use surl
+ source = git+https://github.com/uobikiemukot/sdump
+ sha1sums = SKIP
+
+pkgname = sdump-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e62321ac488
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: BrainDamage
+pkgname="sdump-git"
+pkgrel=1
+pkgver=20161004.c5fb55b
+pkgdesc="sixel variant of idump with a w3mimgdisplay-compatible program"
+arch=("i686" "x86_64")
+url="https://github.com/uobikiemukot/sdump/"
+license=("MIT")
+depends=("libjpeg-turbo" "libpng" "libsixel")
+optdepends=(
+ "wget: to use surl"
+ #"mupdf: to use spdf" arch package lacks mudraw
+)
+sha1sums=("SKIP")
+source=("git+https://github.com/uobikiemukot/sdump")
+
+pkgver() {
+ cd "sdump"
+ #uuuugly code to use date + current git hash in lieu of absent release tag
+ echo "$(date +%Y%m%d).$(git describe --always)"
+}
+
+build() {
+ # this project uses CFLAGS and LDFLAGS to set the optins, but pacman tries to add its own, and the makefile is set to reject current
+ # if the var is set, and chaining default flags won't make it build, so we uset them here
+ #FIXME: figure out which specific flag is making it fail
+ cd "sdump"
+ unset CFLAGS
+ unset LDFLAGS
+ make
+ cd "yaimg-sixel"
+ make
+}
+
+package() {
+ cd "sdump"
+ install -D "sdump" "$pkgdir/usr/bin/sdump"
+ install -D "yaimg-sixel/yaimg-sixel" "$pkgdir/usr/bin/yaimg-sixel"
+ install -D "scripts/surl" "$pkgdir/usr/bin/surl"
+ install -D "scripts/sviewer" "$pkgdir/usr/bin/sviewer"
+ #install -D "scripts/spdf" "$pkgdir/usr/bin/spdf"
+}
+
+post_install() {
+ echo "In order to use yaimg-sixel in place of w3mimgdisplay to have w3m render images using sixels, you have to:"
+ echo "rm /usr/lib/w3m/w3mimgdisplay"
+ echo "ln -s /usr/bin/yaimg-sixel /usr/lib/w3m/w3mimgdisplay"
+ echo "Add NoExtract = /usr/lib/w3m/w3mimgdiplay to pacman.conf so that further w3m updates won't override the symlink"
+}