Skip to content

Commit

Permalink
upgpkg: blockbench-git v4.6.4.r0.gf5e43877-1
Browse files Browse the repository at this point in the history
Ensure correct directory structure

Signed-off-by: txtsd <code@ihavea.quest>
  • Loading branch information
txtsd committed Oct 21, 2023
1 parent 12fd3b9 commit 8879547
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion blockbench-git/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgbase = blockbench-git
pkgdesc = A low-poly 3D model editor (git version)
pkgver = v4.6.4.r0.gf5e43877
pkgrel = 2
pkgrel = 1
url = https://github.com/JannisX11/blockbench
arch = x86_64
arch = aarch64
Expand Down
12 changes: 6 additions & 6 deletions blockbench-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pkgname=blockbench-git
pkgver=v4.6.4.r0.gf5e43877
pkgrel=2
pkgrel=1
pkgdesc="A low-poly 3D model editor (git version)"
arch=('x86_64' 'aarch64')
url=https://github.com/JannisX11/blockbench
Expand All @@ -28,20 +28,20 @@ pkgver() {

prepare() {
cd "${srcdir}/${_pkgname}"

_electronDist=/usr/lib/${_electron}
_electronVersion=$(cat ${_electronDist}/version)
_electronVersionMajor=${_electronVersion%%.*}

npm install
}

build() {
cd "${srcdir}/${_pkgname}"
_electronDist=/usr/lib/${_electron}
_electronVersion=$(cat ${_electronDist}/version)
npm run dist -- --linux --x64 --dir -c.electronDist=${_electronDist} -c.electronVersion=${_electronVersion}
}

package() {
_electronDist=/usr/lib/${_electron}
_electronVersion=$(cat ${_electronDist}/version)
_electronVersionMajor=${_electronVersion%%.*}
install -d "${pkgdir}/usr/"{bin,share/{pixmaps,applications}}
install -d "${pkgdir}/${_electronDist}${_electronVersionMajor}/resources"
echo -e "#!/bin/bash\nexec ${_electron} ${_electronDist}${_electronVersionMajor}/resources/${_pkgname}.asar \"\$@\"" > "${pkgdir}/usr/bin/${_pkgname}"
Expand Down

0 comments on commit 8879547

Please sign in to comment.