DeltatuneWls/PKGBUILD

45 lines
1.2 KiB
Bash

# Maintainer: Your Name <youremail@domain.com>
pkgname=deltatune-wls-git
pkgver=r7.0e4c0f4
pkgrel=1
pkgdesc="A Linux and Wayland port of DeltaTune based on layer shell"
arch=("x86_64")
url="https://git.meow.company/pancakes/DeltatuneWls"
license=("unknown")
groups=()
depends=("dotnet-runtime" "gtk4-layer-shell")
makedepends=("dotnet-sdk" "git")
provides=("${pkgname%-VCS}")
conflicts=("${pkgname%-VCS}")
replaces=()
backup=()
options=("!strip")
install=
source=("${pkgname%-git}::git+https://git.meow.company/pancakes/DeltatuneWls#commit=0e4c0f4ba5e8f502f8c461d8e71b53e158319bf7"
"git+https://git.meow.company/pancakes/ZwlrLayerShell.git")
noextract=()
sha256sums=('SKIP' 'SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
# Git, no tags available
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
git submodule init
git config submodule.ZwlrLayerShell.url "$srcdir/ZwlrLayerShell"
git -c protocol.file.allow=always submodule update
}
build() {
cd "$srcdir/${pkgname%-git}"
dotnet publish -r linux-x64
}
package() {
cd "$srcdir/${pkgname%-git}"
install -Dm755 DeltatuneWls/bin/Release/net9.0/linux-x64/publish/DeltatuneWls ${pkgdir}/usr/bin/deltatune-wls
}