summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5bd4ef39a38989548580fc8d344a41660961d91a (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
# Maintainer: Max Zhao <alcasa.mz@gmail.com>
pkgname=hiptext
pkgver=0.1
pkgrel=2
pkgdesc="hiptext is command line tool for rendering images and videos inside terminals."
arch=('any')
url="https://github.com/jart/hiptext"
license=('GPL')
groups=()
depends=(
"gflags"
"google-glog"
)
makedepends=(
"libpng12"
"libjpeg-turbo"
"freetype2"
"giflib"
"ragel"
"ffmpeg"
)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/jart/hiptext/archive/0.1.tar.gz"
        "ffmpeg.patch"
	"hiptext.sh")
noextract=()
md5sums=('a028fb0b95a8745e81258614c92064e1'
         '0a6b5cb5275f71f29027f1f5cc1c4b50'
         '29c7c80e4c783406948a51034d15076c')

prepare() {
	cd "$pkgname-$pkgver"
	patch -p1 -i "../ffmpeg.patch"
}

build() {
	cd "$pkgname-$pkgver"
	make
}

package() {
	cd "$pkgname-$pkgver"
	mkdir -p "$pkgdir/usr/share/$pkgname/bin"
	mkdir -p "$pkgdir/usr/bin"
	make PREFIX="$pkgdir/usr/share/$pkgname" install
	cp "$srcdir/hiptext.sh" "$pkgdir/usr/bin/hiptext"
	cp "$srcdir/$pkgname-$pkgver/DejaVuSansMono.ttf" "$pkgdir/usr/share/$pkgname/dejavu.ttf"
}