blob: f6e1293a89030fa05b92d7634ed9064797aafda5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Manuel Coenen <manuel.coenen@gmail.com>
pkgname=timg
pkgver=1.6.1
pkgrel=1
pkgdesc="Terminal Image and Video Viewer"
arch=('any')
url="https://github.com/hzeller/timg"
license=('GPL2')
depends=('libwebp' 'libjpeg-turbo' 'libexif' 'graphicsmagick' 'ffmpeg' 'openslide' 'libsixel' 'libdeflate' 'librsvg' 'poppler-glib')
makedepends=('cmake' 'pkgconf' 'git' 'gcc')
source=("timg-$pkgver.tar.gz::https://github.com/hzeller/timg/archive/v$pkgver.tar.gz")
sha256sums=('08147c41ce4cea61b6c494ad746e743b7c4501cfd247bec5134e8ede773bf2af')
build() {
cd "$pkgname-$pkgver"
rm -rf build
mkdir build
cd build
cmake ../ \
-DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" \
-DWITH_VIDEO_DEVICE=On \
-DWITH_OPENSLIDE_SUPPORT=On \
-DWITH_STB_IMAGE=Off
make
}
package() {
cd "$pkgname-$pkgver"/build
install -d "${pkgdir}/usr/"{bin,share/man/man1}
make install
}
|