blob: 8603b0aac949bcc5d18ea3484a4bfae647d29734 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Max Zhao < alcasa dot mz at gmail dot com >
# Contributor: Konstantin Gizdov < arch at kge dot pw >
pkgname=hiptext
pkgver=0.2
pkgrel=1
pkgdesc="Command line tool for rendering images and videos inside terminals."
arch=('any')
url="https://github.com/jart/hiptext"
license=('GPL')
depends=('gflags'
'google-glog')
makedepends=('ffmpeg'
'freetype2'
'giflib'
'libjpeg-turbo'
'libpng12'
'ragel')
source=("https://github.com/jart/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"
'hiptext.sh'
'build_with_latest_ffmpeg.patch'
'gflags_namespace.patch'
'video_flicker.patch')
sha256sums=('7f2217dec8775b445be6745f7bd439c24ce99c4316a9faf657bee7b42bc72e8f'
'bd97c23995f372326d8d2b0b70591b595e169dbd0006317c299bfd6f44df43dc'
'59482f694811569d08596c07c2461ad9adb6c74c500b6a8755889a78eb27f4b1'
'ba251b4847be9f45192b60605d6211254f46c310909f706ce91eb9ff9d4f4e15'
'c9ddd3e4266a4f6fd0b92bf1c23d7bb5bf6ec150dfa67c76b5f17df6a92a3d49')
prepare() {
cd "$pkgname-$pkgver"
msg2 'Applying patches...'
patch -p1 -i "$srcdir/build_with_latest_ffmpeg.patch"
patch -p1 -i "$srcdir/video_flicker.patch"
# patch -p1 -i "$srcdir/gflags_namespace.patch" # optional
msg2 'Configuring...'
./configure --prefix=/usr \
--includedir=/usr/include \
--libdir=/usr/lib \
--datarootdir=/usr/share \
--sysconfdir=/etc \
--localstatedir=/var \
--sharedstatedir=/com \
LIBGFLAGS_LIBS="-lgflags" \
LIBGFLAGS_CFLAGS="-lgflags"
}
build() {
cd "$pkgname-$pkgver"
msg2 'Building...'
make
}
package() {
cd "$pkgname-$pkgver"
msg2 'Installing...'
make DESTDIR="$pkgdir/usr/share/$pkgname" install
install -d "$pkgdir/usr/share/$pkgname/fonts"
install -Dm644 "$srcdir/$pkgname-$pkgver/DejaVuSansMono.ttf" \
"$pkgdir/usr/share/hiptext/fonts/DejaVuSansMono.ttf"
install -Dm755 "$srcdir/hiptext.sh" "$pkgdir/usr/bin/hiptext"
}
|