blob: 02a7e46eba7a9b20cd55883b9b1f0dc0e7880cf6 (
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
|
# Maintainer: Kevin MacMartin <prurigro@gmail.com>
_pkgname=tdf
pkgname=${_pkgname}-git
pkgver=20240605.r26.f893ecb
pkgrel=1
pkgdesc='A terminal-based PDF viewer'
url='https://github.com/itsjunetime/tdf'
license=('MPL-2.0')
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
depends=('cairo' 'poppler-glib')
makedepends=('git' 'rustup')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=('git+https://github.com/itsjunetime/tdf')
sha512sums=('SKIP')
pkgver() {
cd $_pkgname
printf "%s.r%s.%s" "$(git show -s --format=%ci main | sed 's/\ .*//g;s/-//g')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $_pkgname
cargo build --release
}
package() {
cd $_pkgname
install -Dm755 ./target/release/$_pkgname "$pkgdir/usr/bin/$_pkgname"
}
|