generated from avior/template-web-astro
add build
This commit is contained in:
37
PKGBUILD
Normal file
37
PKGBUILD
Normal file
@ -0,0 +1,37 @@
|
||||
# Maintainer:
|
||||
pkgname=gwaleen-desktop-git
|
||||
pkgver=0.1.0
|
||||
pkgrel=1
|
||||
pkgdesc="Description of your app"
|
||||
arch=('x86_64' 'aarch64')
|
||||
url="https://git.dzeio.com/aptatio/gwaleen-desktop"
|
||||
# url="https://github.com/<user>/<project>"
|
||||
license=('MIT')
|
||||
depends=('cairo' 'desktop-file-utils' 'gdk-pixbuf2' 'glib2' 'gtk3' 'hicolor-icon-theme' 'libsoup' 'pango' 'webkit2gtk-4.1')
|
||||
makedepends=('git' 'openssl' 'appmenu-gtk-module' 'libappindicator-gtk3' 'librsvg' 'cargo' 'nodejs')
|
||||
provides=('gwaleen-desktop')
|
||||
# conflicts=('<binname>' 'gwaleen-desktop')
|
||||
source=("git+${url}.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd gwaleen-desktop
|
||||
( set -o pipefail
|
||||
git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
|
||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
|
||||
)
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd gwaleen-desktop
|
||||
npm ci
|
||||
}
|
||||
|
||||
build() {
|
||||
cd gwaleen-desktop
|
||||
npx tauri build -b deb
|
||||
}
|
||||
|
||||
package() {
|
||||
cp -a gwaleen-desktop/src-tauri/target/release/bundle/deb/gwaleen-desktop_${pkgver}_*/data/* "${pkgdir}"
|
||||
}
|
Reference in New Issue
Block a user