blob: 26f8e70030ebef879277ab89bd4b0e8bb043564e (
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
|
# Maintainer: Adam Perkowski <adas1per@protonmail.com>
# https://github.com/adamperkowski/PKGBUILDs
pkgname=fancy-cat
pkgver=0.1.0
pkgrel=1
pkgdesc='PDF reader for terminal emulators'
arch=('x86_64')
url="https://github.com/freref/$pkgname"
license=('MIT')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('2c6f5bacd5eba701bb9c889f2c613323007a71b9b142d95c9ee62f62110e5aec')
depends=('glibc' 'libmupdf')
makedepends=('zig=0.13.0'
'freetype2' 'harfbuzz' 'jbig2dec' 'openjpeg2' 'libjpeg-turbo' 'gumbo-parser' 'mujs' 'zlib')
prepare() {
cd "$pkgname-$pkgver"
sed -i 's/ "mupdf-third", "harfbuzz",/ "mupdf", "harfbuzz",/' build.zig
zig build --fetch
}
build() {
cd "$pkgname-$pkgver"
zig build install --prefix 'out'
}
package() {
cd "$pkgname-$pkgver"
install -Dm0755 "out/bin/$pkgname" -t "$pkgdir/usr/bin"
install -Dm0644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm0644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
}
# vim: ts=2 sw=2 et:
|