blob: 7b54a90faf8eff73db7ca8263bc330ccda59903d (
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
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: xeruf <27jf at pm dot me>
_pkgname='timg'
pkgname="${_pkgname}-git"
pkgver=1.6.0.r5.gd617cf6
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')
makedepends=('cmake' 'git' 'poppler-glib')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
optdepends=()
source=("git+${url}")
sha512sums=('SKIP')
build() {
cd "${srcdir}/${_pkgname}/"
mkdir -p build
cd build
cmake ../ \
-DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" \
-DWITH_VIDEO_DECODING=On \
-DWITH_VIDEO_DEVICE=On \
-DWITH_OPENSLIDE_SUPPORT=On
make
}
package() {
cd "${srcdir}/${_pkgname}/build"
install -d "${pkgdir}/usr/"{bin,share/man/man1}
make install
}
pkgver() {
cd "${_pkgname}"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
|