summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d0053ff31d583f979199c06ed2f2ac2ae417d6a5 (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
# Maintainer: Ron B.S <ronthecookie0101 on gmail --OR-- me AT ronthecookie DOT me 
pkgname=jumpcutter-git
pkgver=r18.df41c43
pkgrel=2
pkgdesc="Automatically edits videos. Explanation here: https://www.youtube.com/watch?v=DQ8orIurGxw"
arch=('any')
url="https://github.com/carykh/jumpcutter"
license=('MIT')
depends=('ffmpeg' 'python-pillow' 'python-audiotsm' 'python-scipy' 'python-numpy' 'python')
makedepends=('git') 
source=("$pkgname::git+https://github.com/carykh/jumpcutter.git" '0001-Add-shebang-line.patch')
sha256sums=('SKIP'
         '33c22ce87b48e0d08081da6543f7f7610fcae4240b95d91e285a49339e601ffb')

pkgver() {
	cd "$srcdir/$pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
	cd "$srcdir/$pkgname"
	git am < "$srcdir"/0001-Add-shebang-line.patch
}

package() {
	cd "$srcdir/$pkgname"
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	install -Dm755 jumpcutter.py "$pkgdir"/usr/bin/jumpcutter
}