Upd PKGBUILD
This commit is contained in:
parent
e442ad43a0
commit
ee5b7f764e
2 changed files with 45 additions and 18 deletions
57
PKGBUILD
57
PKGBUILD
|
|
@ -1,46 +1,66 @@
|
||||||
# Maintainer: Stephen E. Hellings <stephen@hellings.cc>
|
# Maintainer: Stephen E. Hellings <stephen@hellings.cc>
|
||||||
|
|
||||||
pkgname=wo-git
|
pkgname=wo-git
|
||||||
pkgver=0.1.0
|
pkgver=0.1.0.r2.ge442ad4
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='The Electron Wayland Compositor'
|
pkgdesc='The Electron Wayland Compositor'
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url='https://github.com/hellings/wo'
|
url='https://github.com/wl-wo/wo'
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
|
provides=('wo')
|
||||||
|
conflicts=('wo')
|
||||||
depends=(
|
depends=(
|
||||||
|
'electron'
|
||||||
'libdrm'
|
'libdrm'
|
||||||
'libinput'
|
'libinput'
|
||||||
'libseat'
|
'seatd'
|
||||||
'libxkbcommon'
|
'libxkbcommon'
|
||||||
'mesa'
|
'mesa'
|
||||||
'wayland'
|
|
||||||
'xorg-xwayland'
|
|
||||||
'pipewire'
|
'pipewire'
|
||||||
'electron'
|
'wayland'
|
||||||
|
'xdg-desktop-portal'
|
||||||
|
'xorg-xwayland'
|
||||||
)
|
)
|
||||||
makedepends=(
|
makedepends=(
|
||||||
|
'bun'
|
||||||
'cargo'
|
'cargo'
|
||||||
'rust'
|
|
||||||
'clang'
|
'clang'
|
||||||
|
'npm'
|
||||||
'pkgconf'
|
'pkgconf'
|
||||||
|
'rust'
|
||||||
)
|
)
|
||||||
options=('!lto')
|
options=('!lto')
|
||||||
|
|
||||||
source=(
|
source=(
|
||||||
"git+https://github.com/wo-wl/wo.git"
|
"wo::git+https://github.com/wl-wo/wo.git"
|
||||||
"git+https://github.com/wo-wl/comraw.git"
|
"comraw::git+https://github.com/wl-wo/comraw.git"
|
||||||
"config.example.toml"
|
|
||||||
"packaging/wayland-sessions/wo.desktop"
|
|
||||||
"electron"
|
|
||||||
)
|
)
|
||||||
|
sha256sums=('SKIP' 'SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "$srcdir/wo"
|
||||||
|
printf '0.1.0.r%s.g%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$startdir"
|
cd "$srcdir/wo"
|
||||||
cargo build --release --locked --bins
|
cargo build --release --locked --bins
|
||||||
|
|
||||||
|
cd "$srcdir/wo/electron"
|
||||||
|
bun install --frozen-lockfile
|
||||||
|
bun run build
|
||||||
|
bun run build-native
|
||||||
|
|
||||||
|
cd "$srcdir/wo/electron/types"
|
||||||
|
bun install
|
||||||
|
|
||||||
|
cd "$srcdir/comraw"
|
||||||
|
npm install --no-audit --no-fund
|
||||||
|
npm run build
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$startdir"
|
cd "$srcdir/wo"
|
||||||
|
|
||||||
install -Dm755 target/release/wo "$pkgdir/usr/bin/wo"
|
install -Dm755 target/release/wo "$pkgdir/usr/bin/wo"
|
||||||
install -Dm755 target/release/wo-portal "$pkgdir/usr/bin/wo-portal"
|
install -Dm755 target/release/wo-portal "$pkgdir/usr/bin/wo-portal"
|
||||||
|
|
@ -51,7 +71,10 @@ package() {
|
||||||
install -Dm644 config.example.toml \
|
install -Dm644 config.example.toml \
|
||||||
"$pkgdir/usr/share/doc/$pkgname/config.example.toml"
|
"$pkgdir/usr/share/doc/$pkgname/config.example.toml"
|
||||||
|
|
||||||
if [[ -d electron ]]; then
|
install -d "$pkgdir/usr/lib/wo"
|
||||||
cp -a electron "$pkgdir/usr/lib/$pkgname/"
|
cp -a electron/dist "$pkgdir/usr/lib/wo/"
|
||||||
fi
|
cp -a electron/native "$pkgdir/usr/lib/wo/"
|
||||||
|
|
||||||
|
install -d "$pkgdir/usr/lib/wo/comraw"
|
||||||
|
cp -a "$srcdir/comraw/dist" "$pkgdir/usr/lib/wo/comraw/"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,8 @@ interactive = false
|
||||||
[[autostart]]
|
[[autostart]]
|
||||||
name = "init-portal"
|
name = "init-portal"
|
||||||
command = "wo://portal/start"
|
command = "wo://portal/start"
|
||||||
delay = 100
|
delay = 100
|
||||||
|
|
||||||
|
[[autostart]]
|
||||||
|
name = "vite"
|
||||||
|
command = "cd /
|
||||||
Loading…
Reference in a new issue