summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo (XenGi) Band2015-12-22 00:44:41 +0100
committerRicardo (XenGi) Band2015-12-22 00:44:41 +0100
commit6ba154f8735c6ea49dcdcc18aaadc8c8f2b00cd9 (patch)
treefe6ad453bb76d9e6772983b5acb8442b08088f85
downloadaur-6ba154f8735c6ea49dcdcc18aaadc8c8f2b00cd9.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD29
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0d418616211
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = img2xterm
+ pkgdesc = Displays images on your 256-color terminal with Unicode block characters
+ pkgver = 1.0.0
+ pkgrel = 1
+ url = https://github.com/rossy/img2xterm
+ arch = any
+ license = CC0
+ depends = imagemagick
+ depends = ncurses
+ optdepends = gimp: palette containing the upper 240 colours used in xterm
+ options = !emptydirs
+ source = https://github.com/rossy/img2xterm/archive/v1.0.0.tar.gz
+ sha256sums = 426c682ce61d047f9cf3c3334907dc023475974a5644792591316c137010066e
+
+pkgname = img2xterm
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..952fc31ad9a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Ricardo (XenGi) Band <email@ricardo.band>
+
+pkgname=img2xterm
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Displays images on your 256-color terminal with Unicode block characters"
+arch=(any)
+url="https://github.com/rossy/img2xterm"
+license=('CC0')
+depends=('imagemagick' 'ncurses')
+optdepends=('gimp: palette containing the upper 240 colours used in xterm')
+options=(!emptydirs)
+install=
+source=("https://github.com/rossy/$pkgname/archive/v$pkgver.tar.gz")
+sha256sums=('426c682ce61d047f9cf3c3334907dc023475974a5644792591316c137010066e')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make
+ cd "$srcdir/$pkgname-$pkgver/extra"
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" PREFIX="$pkgdir/usr" install
+ install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+