diff options
author | zxp19821005 | 2023-11-13 11:00:05 +0800 |
---|---|---|
committer | zxp19821005 | 2023-11-13 11:00:05 +0800 |
commit | 9785cf4519fea00ec397d518842ca4d928e12310 (patch) | |
tree | 830f85fe7b7b478540f80b99de2d2e8afc13ce2a | |
parent | b95404f1e7bb584c9b44a0252fc171b3e5c3766c (diff) | |
download | aur-9785cf4519fea00ec397d518842ca4d928e12310.tar.gz |
update to 0.11.0.r0.gf5dd5bf
-rw-r--r-- | .SRCINFO | 33 | ||||
-rw-r--r-- | PKGBUILD | 82 |
2 files changed, 81 insertions, 34 deletions
@@ -1,14 +1,33 @@ pkgbase = figma-linux-git - pkgdesc = Figma-linux is an unofficial Electron-based Figma desktop app for Linux. - pkgver = 0.10.0 + pkgdesc = An unofficial Electron-based Figma desktop app,the first interface design tool based in the browser, making it easier for teams to create software. + pkgver = 0.11.0.r0.gf5dd5bf pkgrel = 1 url = https://github.com/Figma-Linux/figma-linux - arch = x86_64 - license = GPL - makedepends = rust - makedepends = npm + arch = any + license = GPL2 + makedepends = gendesk + makedepends = git + makedepends = nodejs>=18.11.18 + makedepends = npm>=9.8.1 + depends = electron27 + depends = gtk3 + depends = gdk-pixbuf2 + depends = libxext + depends = libx11 + depends = hicolor-icon-theme + depends = pango + depends = nss + depends = nspr + depends = sqlite + depends = at-spi2-core + depends = systemd-libs + depends = libdbusmenu-glib + depends = libdbusmenu-gtk3 + provides = figma-linux=0.11.0.r0.gf5dd5bf conflicts = figma-linux - source = figma-linux::git+https://github.com/Figma-Linux/figma-linux.git + source = figma-linux::git+https://github.com/Figma-Linux/figma-linux.git#tag=v0.11.0 + source = figma-linux.sh sha256sums = SKIP + sha256sums = 27b40ca59adaecf65b181228a1afb0c829c34659c62301e823ec6ba6926aa293 pkgname = figma-linux-git @@ -1,38 +1,66 @@ -# Maintainer: iFlygo <iflygo@outlook.com> - +# Maintainer: zxp19821005 <zxp19821005 at 163 dot com> _pkgname=figma-linux -pkgname=$_pkgname-git -pkgver=0.10.0 +pkgname="${_pkgname}-git" +_pkgver=0.11.0 +pkgver=0.11.0.r0.gf5dd5bf pkgrel=1 -pkgdesc="Figma-linux is an unofficial Electron-based Figma desktop app for Linux." -arch=('x86_64') +pkgdesc="An unofficial Electron-based Figma desktop app,the first interface design tool based in the browser, making it easier for teams to create software." +arch=('any') url="https://github.com/Figma-Linux/figma-linux" -license=('GPL') -conflicts=("$_pkgname") +license=('GPL2') +conflicts=("${_pkgname}") +provides=("${_pkgname}=${pkgver}") depends=( - -) -options=( - + 'electron27' + 'gtk3' + 'gdk-pixbuf2' + 'libxext' + 'libx11' + 'hicolor-icon-theme' + 'pango' + 'nss' + 'nspr' + 'sqlite' + 'at-spi2-core' + 'systemd-libs' + 'libdbusmenu-glib' + 'libdbusmenu-gtk3' ) makedepends=( - 'rust' - 'npm' + 'gendesk' + 'git' + 'nodejs>=18.11.18' + 'npm>=9.8.1' +) +source=( + "${_pkgname}"::"git+${url}.git#tag=v${_pkgver}" + "${_pkgname}.sh" ) -source=("${_pkgname}"::'git+https://github.com/Figma-Linux/figma-linux.git') -sha256sums=("SKIP") - -prepare() { - cd "${_pkgname}" +sha256sums=('SKIP' + '27b40ca59adaecf65b181228a1afb0c829c34659c62301e823ec6ba6926aa293') +pkgver() { + cd "${srcdir}/${_pkgname}" + git describe --long --tags --exclude='*[a-z][a-z]*' | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' } - build() { - cd "${srcdir}/${_pkgname}" - npm i - npm run build + gendesk -q -f -n --pkgname "${_pkgname}" --categories "Utility" --name="${_pkgname}" --exec="${_pkgname}" + cd "${srcdir}/${_pkgname}" + sed -e '62,73d' -e 's|"output": "build/installers"|"output": "out"|g' -i config/builder.json + npm install --no-frozen-lockfile + npm run package } - package() { - echo "test" - -} + install -Dm755 "${srcdir}/${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}" + install -Dm644 "${srcdir}/${_pkgname}/out/linux-unpacked/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-git}" + install -Dm644 "${srcdir}/${_pkgname}/out/linux-unpacked/lib/${CARCH}-linux-gnu/"* -t "${pkgdir}/usr/lib/${pkgname%-git}/lib" + install -Dm644 "${srcdir}/${_pkgname}/out/linux-unpacked/usr/lib/${CARCH}-linux-gnu/"*.* -t "${pkgdir}/usr/lib/${pkgname%-git}/lib" + install -Dm644 "${srcdir}/${_pkgname}/out/linux-unpacked/usr/lib/${CARCH}-linux-gnu/nss/"* -t "${pkgdir}/usr/lib/${pkgname%-git}/lib/nss" + install -Dm644 "${srcdir}/${_pkgname}/out/linux-unpacked/swiftshader/"* -t "${pkgdir}/usr/lib/${pkgname%-git}/swiftshader" + for _icons in 24x24 36x36 48x48 64x64 96x96 128x128 256x256 512x512;do + install -Dm644 "${srcdir}/${_pkgname}/out/linux-unpacked/icons/${_icons}.png" \ + "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${_pkgname}.png" + done + install -Dm644 "${srcdir}/${_pkgname}/out/linux-unpacked/icons/scalable.svg" \ + "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_pkgname}.svg" + install -Dm644 "${srcdir}/${_pkgname}.desktop" -t "${pkgdir}/usr/share/applications" +}
\ No newline at end of file |