-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
49 lines (42 loc) · 1.64 KB
/
PKGBUILD
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
43
44
45
46
47
48
49
# Maintainer: Speykious <[email protected]>
pkgname=vignette-git
pkgver='2021.1102.2'
pkgrel=1
pkgdesc='The open source VTuber software toolkit. ❤'
arch=('i686' 'x86_64')
url='https://github.com/vignette-project/vignette'
license=('Non-Profit OSL')
depends=('dotnet-runtime>=5' 'ffmpeg' 'libgl' 'libgeotiff' 'opencv')
makedepends=('git' 'dotnet-sdk>=5' 'dotnet-targeting-pack>=5' 'netstandard-targeting-pack>=5')
#provides=("${pkgname%-git}")
#conflicts=("${pkgname%-git}")
#options=('!strip')
_meta=vignette-linux-meta
source=("$pkgname::git+https://github.com/vignette-project/vignette.git"
"$_meta::git+https://github.com/lionirdeadman/$_meta")
sha256sums=(SKIP SKIP)
pkgver() {
cd "$pkgname"
printf "'%s'" "$(git describe --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "$pkgname"
rm -rf compiled
env DOTNET_CLI_TELEMETRY_OPTOUT="${DOTNET_CLI_TELEMETRY_OPTOUT-1}" \
dotnet publish Vignette.Desktop --no-self-contained -c Release -r ubuntu.20.04-x64 -o compiled
}
package() {
cd "$_meta"
# Install launch script and app metadata
install -Dm755 vignette "$pkgdir/usr/bin/vignette"
install -Dm644 org.vignetteapp.Vignette.desktop "$pkgdir/usr/share/applications/org.vignetteapp.Vignette.desktop"
install -Dm644 org.vignetteapp.Vignette.appdata.xml "$pkgdir/usr/share/appdata/org.vignetteapp.Vignette.appdata.xml"
install -Dm644 org.vignetteapp.Vignette.svg "$pkgdir/usr/share/pixmaps/org.vignetteapp.Vignette.svg"
# License
cd "../$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Runtime
cd compiled
find . -type f -exec install -Dm644 '{}' "$pkgdir/usr/lib/vignette/{}" ';'
cd ..
}