summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2fab6f57db32cc7085183fb883834c529238d96c (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
# Maintainer: Max Zhao <alcasa.mz@gmail.com>
pkgname=hiptext
pkgver=r101.1cc777a
pkgrel=1
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=()
makedepends=(
"libpng12"
"libjpeg-turbo"
"freetype2"
"giflib"
"ragel"
"ffmpeg"
"gflags"
"google-glog"
)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("hiptext::git://github.com/jart/hiptext.git"
        "ffmpeg.patch"
	"hiptext.sh")
noextract=()
md5sums=('SKIP'
         '86ade16ec71e7a49cb6136973419547f'
         'f2e8f04076e10dbbaf13118d44998a9d')

pkgver() {
  cd "$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
	cd "$pkgname"
	patch -p1 -i "../ffmpeg.patch"
}

build() {
	cd "$pkgname"
	make
}

package() {
	cd "$pkgname"
	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/DejaVuSansMono.ttf" "$pkgdir/usr/share/$pkgname/dejavu.ttf"
}