mirror of
https://github.com/archlinux/aur.git
synced 2026-02-07 04:41:00 +01:00
initial commit
This commit is contained in:
commit
ff6b7dbff7
4 changed files with 91 additions and 0 deletions
18
.SRCINFO
Normal file
18
.SRCINFO
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
pkgbase = eez-studio-appimage
|
||||
pkgdesc = Cross-platform low-code GUI and automation
|
||||
pkgver = 0.23.2
|
||||
pkgrel = 1
|
||||
url = https://github.com/eez-open/studio/releases
|
||||
arch = x86_64
|
||||
arch = aarch64
|
||||
license = GPL
|
||||
makedepends = python-pip
|
||||
makedepends = python-setuptools
|
||||
depends = python
|
||||
options = !strip
|
||||
source = eez-studio-appimage-0.23.2.AppImage::https://github.com/eez-open/studio/releases/download/v0.23.2/EEZ-Studio-0.23.2.AppImage
|
||||
source = requirements.txt
|
||||
sha256sums = 18380472a9ddc3001a63fb8438022425f47fc9268f7502aad2947c69382f5530
|
||||
sha256sums = 7019be3da97f345557fb38a581aabfd8a1d2e5324391a785213d8e5eb238aa90
|
||||
|
||||
pkgname = eez-studio-appimage
|
||||
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
pkg/
|
||||
src/
|
||||
*.pkg*
|
||||
*.AppImage
|
||||
67
PKGBUILD
Normal file
67
PKGBUILD
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
# Maintainer: Matteo Bonora <bonora.matteo@gmail.com>
|
||||
|
||||
pkgname=eez-studio-appimage
|
||||
pkgver=0.23.2
|
||||
pkgrel=1
|
||||
pkgdesc="Cross-platform low-code GUI and automation"
|
||||
arch=('x86_64' 'aarch64')
|
||||
url="https://github.com/eez-open/studio/releases"
|
||||
license=('GPL')
|
||||
options=(!strip)
|
||||
|
||||
depends=(
|
||||
'python'
|
||||
)
|
||||
|
||||
makedepends=(
|
||||
'python-pip'
|
||||
'python-setuptools'
|
||||
)
|
||||
|
||||
source=(
|
||||
"${pkgname}-${pkgver}.AppImage::https://github.com/eez-open/studio/releases/download/v${pkgver}/EEZ-Studio-${pkgver}.AppImage"
|
||||
"requirements.txt"
|
||||
)
|
||||
|
||||
sha256sums=('18380472a9ddc3001a63fb8438022425f47fc9268f7502aad2947c69382f5530'
|
||||
'7019be3da97f345557fb38a581aabfd8a1d2e5324391a785213d8e5eb238aa90')
|
||||
|
||||
prepare() {
|
||||
chmod +x "${srcdir}/${pkgname}-${pkgver}.AppImage"
|
||||
cd "${srcdir}"
|
||||
./"${pkgname}-${pkgver}.AppImage" --appimage-extract
|
||||
}
|
||||
|
||||
build() {
|
||||
sed -i "s|Exec=AppRun|Exec=${pkgname%-appimage}|" "${srcdir}/squashfs-root/eezstudio.desktop"
|
||||
pip install --target="${srcdir}/pydeps" -r "${srcdir}/requirements.txt"
|
||||
}
|
||||
|
||||
package() {
|
||||
# Create the application directory
|
||||
mkdir -p "${pkgdir}/opt/${pkgname}"
|
||||
|
||||
# Copy extracted AppImage contents to /opt/${pkgname}
|
||||
# The trailing dot in the source path ensures hidden files are copied
|
||||
cp -a "${srcdir}/squashfs-root/." "${pkgdir}/opt/${pkgname}/"
|
||||
|
||||
# Copy Python dependencies to /opt/${pkgname}
|
||||
cp -a "${srcdir}/pydeps/"* "${pkgdir}/opt/${pkgname}/"
|
||||
|
||||
# Ensure all files in /opt/${pkgname} have correct permissions
|
||||
chmod -R 755 "${pkgdir}/opt/${pkgname}"
|
||||
|
||||
# Install desktop file
|
||||
install -Dm644 "${srcdir}/squashfs-root/eezstudio.desktop" "${pkgdir}/usr/share/applications/${pkgname%-appimage}.desktop"
|
||||
|
||||
# Install icon
|
||||
install -Dm644 "${srcdir}/squashfs-root/eezstudio.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/${pkgname%-appimage}.png"
|
||||
|
||||
# Create symlink for executable
|
||||
mkdir -p "${pkgdir}/usr/bin"
|
||||
install -Dm755 "/dev/stdin" "${pkgdir}/usr/bin/${pkgname%-appimage}" <<EOF
|
||||
#!/bin/bash
|
||||
export PYTHONPATH=/opt/${pkgname}
|
||||
exec "/opt/${pkgname}/eezstudio" "$@"
|
||||
EOF
|
||||
}
|
||||
2
requirements.txt
Normal file
2
requirements.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
lz4==4.4.4
|
||||
pypng==0.20220715.0
|
||||
Loading…
Add table
Reference in a new issue