blob: e273ec0c83ec986f9cf00859e484b20e05cf9d65 (
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
38
39
40
41
42
|
mkdir -p "$HOME/.cache/pacman/pkg"
PKGDEST="$HOME/.cache/pacman/pkg/$pkgname"
pkgname=vnrez
pkgver=1.0
pkgrel=1
pkgdesc="All-in-one Linux tool for recording, screenshots to share your files online."
arch=('any')
url="https://github.com/verysillycat/vnrez"
license=('AGPL-3.0')
source=("https://github.com/verysillycat/vnrez/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('SKIP')
install=vnrez.install
depends=('jq' 'ffmpeg')
optdepends=(
'kooha: GNOME & KDE support'
'wl-clipboard: Wayland Clipboard support'
'slurp: Wayland wlroots based support'
'wf-recorder: Wayland wlroots based support'
'wl-screenrec: Alternative for Wayland wlroots based support'
'xclip: X11 Clipboard support'
'slop: X11 Support'
)
prepare() {
cd "$srcdir"
mkdir -p "${pkgdir}/opt/vnrez"
tar xzf v${pkgver}.tar.gz
}
package() {
mkdir -p "${pkgdir}/opt/vnrez"
cp -r vnrez-${pkgver}/* "${pkgdir}/opt/vnrez"
mkdir -p "${pkgdir}/usr/bin"
ln -s "/opt/vnrez/vnrez.sh" "${pkgdir}/usr/bin/vnrez"
mkdir -p "${pkgdir}/usr/share/doc/vnrez"
if [[ -f "${pkgdir}/opt/vnrez/README.md" ]]; then
install -Dm644 "${pkgdir}/opt/vnrez/README.md" "${pkgdir}/usr/share/doc/vnrez/README.md"
fi
}
|