diff options
author | zxp19821005 | 2023-07-11 11:14:38 +0800 |
---|---|---|
committer | zxp19821005 | 2023-07-11 11:14:38 +0800 |
commit | 023a0a3f78b3c1ceea5048f8dfea993377d88b92 (patch) | |
tree | 6f883ce97b0b86fe6a9dc2b5e865840bd552a75e | |
parent | b721a37534981e23bda4588179cb955d0a804366 (diff) | |
download | aur-023a0a3f78b3c1ceea5048f8dfea993377d88b92.tar.gz |
optimized PKGBUILD
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | PKGBUILD | 21 | ||||
-rw-r--r-- | eagle-animation.sh | 6 |
3 files changed, 25 insertions, 31 deletions
@@ -1,37 +1,16 @@ pkgbase = eagle-animation-bin pkgdesc = An awesome, free and open-source animation software. pkgver = 2.2.0 - pkgrel = 1 + pkgrel = 2 url = https://brickfilms.com/ arch = x86_64 license = GPL3 - depends = nodejs - depends = libxrandr - depends = libxfixes + depends = electron23 depends = hicolor-icon-theme - depends = libx11 - depends = glib2 - depends = libxcomposite - depends = nspr - depends = glibc - depends = libxkbcommon - depends = expat - depends = libxcb - depends = nss - depends = cairo - depends = alsa-lib - depends = libxdamage - depends = dbus - depends = mesa - depends = libxext - depends = libcups - depends = pango - depends = libdrm - depends = gcc-libs - depends = at-spi2-core - depends = gtk3 conflicts = eagle-animation source = eagle-animation-2.2.0.deb::https://github.com/brick-a-brack/eagle-animation/releases/download/v2.2.0/eagle-animation-2.2.0-linux.deb + source = eagle-animation.sh sha256sums = 6bbc4d124686d12ecc566b70581896080f75bde4bc69da45cd7a12f1b44e38de + sha256sums = 3aa85af035471363a3c240a9cc9cac82a28a05e2d5d08fca474b0967eb6ee381 pkgname = eagle-animation-bin @@ -1,18 +1,27 @@ # Maintainer: zxp19821005 <zxp19821005 at 163 dot com> pkgname=eagle-animation-bin pkgver=2.2.0 -pkgrel=1 +pkgrel=2 pkgdesc="An awesome, free and open-source animation software." arch=('x86_64') url="https://brickfilms.com/" _githuburl="https://github.com/brick-a-brack/eagle-animation" license=('GPL3') -depends=('nodejs' 'libxrandr' 'libxfixes' 'hicolor-icon-theme' 'libx11' 'glib2' 'libxcomposite' 'nspr' 'glibc' 'libxkbcommon' 'expat' \ - 'libxcb' 'nss' 'cairo' 'alsa-lib' 'libxdamage' 'dbus' 'mesa' 'libxext' 'libcups' 'pango' 'libdrm' 'gcc-libs' 'at-spi2-core' 'gtk3') +depends=('electron23' 'hicolor-icon-theme') conflicts=("${pkgname%-bin}") -source=("${pkgname%-bin}-${pkgver}.deb::${_githuburl}/releases/download/v${pkgver}/${pkgname%-bin}-${pkgver}-linux.deb") -sha256sums=('6bbc4d124686d12ecc566b70581896080f75bde4bc69da45cd7a12f1b44e38de') +source=("${pkgname%-bin}-${pkgver}.deb::${_githuburl}/releases/download/v${pkgver}/${pkgname%-bin}-${pkgver}-linux.deb" + "${pkgname%-bin}.sh") +sha256sums=('6bbc4d124686d12ecc566b70581896080f75bde4bc69da45cd7a12f1b44e38de' + '3aa85af035471363a3c240a9cc9cac82a28a05e2d5d08fca474b0967eb6ee381') package() { - bsdtar -xf "${srcdir}/data.tar.xz" -C "${pkgdir}" + bsdtar -xf "${srcdir}/data.tar.xz" + install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/opt/${pkgname%-bin}/${pkgname%-bin}" + cp -r "${srcdir}/opt/Eagle Animation/resources/"* "${pkgdir}/opt/${pkgname%-bin}" + sed "s|\"/opt/Eagle Animation/eagle-animation\" %U|/opt/${pkgname%-bin}/${pkgname%-bin}|g" -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" + install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" + for _icons in 16x16 32x32 48x48 64x64 128x128 256x256 512x512;do + install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png" \ + -t "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps" + done }
\ No newline at end of file diff --git a/eagle-animation.sh b/eagle-animation.sh new file mode 100644 index 000000000000..07442e43fd3c --- /dev/null +++ b/eagle-animation.sh @@ -0,0 +1,6 @@ +#!/bin/bash +if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then + exec electron23 /opt/eagle-animation/app.asar "$@" +else + exec electron23 --no-sandbox /opt/eagle-animation/app.asar "$@" +fi
\ No newline at end of file |