blob: fcbd98ee512abe1751add45669b3b551abec71ea (
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
32
33
34
35
36
37
|
# Maintainer: Andrew Mascillaro <amascillaro@gmail.com>
pkgname=weffe-git
pkgver=1.1.0.r0.g970ac61
pkgrel=1
pkgdesc="Lightweight CLI for video effects on webcams"
arch=('any')
url="https://github.com/intermezzio/weffe.git"
license=('MIT')
depends=(ffmpeg 'v4l2loopback-dkms>=0.12.5-1')
makedepends=(git)
optdepends=('inotify-tools: monitor output streams')
provides=(weffe)
source=("git+$url")
md5sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "${pkgname%-git}"
mkdir -p "$pkgdir/usr/share/$pkgname/static"
install -Dm755 ./weffe "$pkgdir/usr/share/$pkgname/weffe"
install -Dm644 ./help.md "$pkgdir/usr/share/$pkgname"
mkdir -p "$pkgdir/usr/share/$pkgname"
install -t "$pkgdir/usr/share/$pkgname/static" static/*.png
# TODO: manpage
# mkdir -p "$pkgdir/usr/share/man/man1"
# install -Dm755 ./help.md "$pkgdir/usr/share/man/man1/weffe.1"
rm -f ./tempbin
echo "#!/bin/sh
/usr/share/$pkgname/weffe \"\$@\"" >> ./tempbin
install -Dm755 ./tempbin "$pkgdir/usr/bin/weffe"
}
|