aboutsummaryrefslogtreecommitdiffstats
path: root/community/blind/APKBUILD
blob: 399fb01fa84513ce0f37f3ed55d0aa23f150a624 (plain) (blame)
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
# Contributor:Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch>
# Maintainer: Jean-Louis Fuchs <jean-louis.fuchs@adfinis-sygroup.ch>
pkgname=blind
pkgver=1.1
pkgrel=2
pkgdesc="blind is a collection of command line video editing utilities"
url="https://tools.suckless.org/blind/"
arch="all"
license="ISC"
checkdepends="ffmpeg"
subpackages="$pkgname-doc"
source="https://dl.suckless.org/tools/blind-$pkgver.tar.gz
	fix-readall.patch
	test.ff.bz2
"

build() {
	make
}

check() {
	# Check if blind is operational
	bunzip2 < "$srcdir/test.ff.bz2" | ./blind-from-image -f > test.bl
	./blind-repeat 15 test.bl | ./blind-flop | ./blind-flip \
		| ./blind-dissolve | ./blind-to-video 50 -c:v libx264 -preset fast -crf 0 \
		-pix_fmt yuv444p out.mp4
	rm test.bl out.mp4
}

package() {
	make PREFIX="/usr" DESTDIR="$pkgdir" install
	cp blind-rotate-* "$pkgdir/usr/bin/"
}

sha512sums="620a5edc69bf736f642948e4f6ac6dda8cdbea4bdad143b09f931e62aaa57983e23ff60961d1485dcbce1ac461be12b393fe03f056ef46ca5ad2012cb03cf637  blind-1.1.tar.gz
cc5ef6e5d84202a4194b4858177d7385674208338de5ce68918838d162ad57bc89f738484bda3bdb2e121fb75029fe74bbf460e92d0ba6b3a678883f151002f9  fix-readall.patch
0834032e1e416824883658478b8cc2821df9b41cf4f169f471df0476c35dfe4a6bcc9c103e5522e54d7f820f77710e3215c691fa39311f6be3310cb1745e2b73  test.ff.bz2"