summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ea44dd354c2fb8a332ab8bde99f4cad74337d7fe (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
# Maintainer: jD91mZM2 <me@krake.one>
pkgname=termplay
pkgver=1.2.0
pkgrel=4
pkgdesc="Play an image/video in your terminal!"
arch=("x86_64")
url="https://github.com/jD91mZM2/termplay"
license=("MIT" "custom")
makedepends=("cargo" "openal" "libsndfile")
optdepends=(
    "ffmpeg: Video support"
    "maim: Screen-mirroring support"
    "youtube-dl: YouTube support"
)
depends=("libsixel")
source=("https://github.com/jD91mZM2/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=("d30e4c3b3e20ac467fdd5ba9f725f1a71e388ff8b8fe81d74447fddb95e49609")

build() {
    cd "$srcdir/$pkgname-$pkgver"
    cargo build --release
}
package() {
    cd "$srcdir/$pkgname-$pkgver"
    install -Dm 755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
    install -Dm 644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}