blob: 63eb1f9590715ecf07817ffe52ad64902ba938dd (
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: Cristofer528yt <cristofer528yt@github.com>
pkgname=video2ascii
pkgver=1.0.0
pkgrel=1
pkgdesc="Convert videos to ASCII art in terminal with 30fps 150x75 resolution"
arch=('x86_64' 'i686' 'aarch64')
url="https://github.com/cristofer528yt/video2ascii"
license=('MIT')
depends=('opencv')
makedepends=('gcc' 'git')
source=("git+https://github.com/cristofer528yt/video2ascii.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$pkgname"
chmod +x compile.sh
./compile.sh
}
package() {
cd "$srcdir/$pkgname"
install -Dm755 video2ascii "$pkgdir/usr/bin/video2ascii"
install -Dm644 video2ascii.cpp "$pkgdir/usr/share/video2ascii/video2ascii.cpp"
install -Dm644 compile.sh "$pkgdir/usr/share/video2ascii/compile.sh"
install -Dm644 README.md "$pkgdir/usr/share/doc/video2ascii/README.md"
}
|