diff options
author | AsukaMinato | 2024-01-06 14:51:51 +0900 |
---|---|---|
committer | AsukaMinato | 2024-01-06 14:51:51 +0900 |
commit | 263a1a19e731f2c7cd10be51a32f889680fb9d9a (patch) | |
tree | 4c06efdcd76304815cf9ed0c5c556cc66c6f9126 | |
download | aur-263a1a19e731f2c7cd10be51a32f889680fb9d9a.tar.gz |
init
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 43 | ||||
-rw-r--r-- | flomo-electron.desktop | 10 |
3 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ffd13facd044 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = flomo-electron + pkgdesc = 浮墨笔记,像发微博一样记笔记,记录你想法的川流.全平台覆盖,还支持微信服务号输入. + pkgver = 3.23.111 + pkgrel = 1 + url = https://flomoapp.com/ + arch = x86_64 + arch = i686 + arch = armv7h + arch = aarch64 + license = private + makedepends = p7zip + depends = electron18 + depends = bash + provides = flomo + conflicts = flomo-pake + source = local://flomo-3.23.111-x64.exe + source = flomo-electron.desktop + sha256sums = da41994cc06fd9c1b7f4458fee588ef4ba9fce570731ef762bd6e49bc2a6d29b + sha256sums = 1b616181e37f172ef3664103774ad6eb245fda9c2f11dad2534c719da5135afa + +pkgname = flomo-electron diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3a5a10095862 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Asuka Minato <i at asukaminato dot eu dot org> +pkgname=flomo-electron +pkgver=3.23.111 +pkgrel=1 +pkgdesc="浮墨笔记,像发微博一样记笔记,记录你想法的川流.全平台覆盖,还支持微信服务号输入." +arch=('x86_64' 'i686' 'armv7h' 'aarch64') +url="https://flomoapp.com/" +license=('private') +depends=(electron18 bash) +makedepends=(p7zip) +provides=(flomo) +conflicts=(flomo-pake) +source=("local://flomo-${pkgver}-x64.exe" $pkgname.desktop) +sha256sums=('da41994cc06fd9c1b7f4458fee588ef4ba9fce570731ef762bd6e49bc2a6d29b' + '1b616181e37f172ef3664103774ad6eb245fda9c2f11dad2534c719da5135afa') + +prepare() { + 7z x *.exe + find . -name "app-64.7z" -print -exec 7z x {} \; + find . -name "app.asar" -print -exec asar e {} ./app \; + find . \( -name "*.map" -or -name "*.gz" \) -print -delete +} + +package() { + install -vd $pkgdir/opt/$pkgname + cp -av $srcdir/app $pkgdir/opt/$pkgname + + printf "desktop file\n" + + printf "#!/bin/sh +exec electron18 /opt/$pkgname/app \"\$@\" +" | install -Dm755 /dev/stdin $pkgdir/usr/bin/flomo + + printf "icon\n" + find $srcdir -name "logo-512.*.png" -path "*/app/img/*" -print -exec install -vDm644 {} $pkgdir/usr/share/pixmaps/$pkgname.png \; + printf "different sized icons\n" + for i in 16 24 32 48 64 128 256 512 1024; do + install -vDm644 $srcdir/app/icons/${i}x${i}.png -t $pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/$pkgname.png + done + + printf "desktop\n" + find $srcdir -name "*.desktop" -exec install -vDm644 {} -t $pkgdir/usr/share/applications/ \; +} diff --git a/flomo-electron.desktop b/flomo-electron.desktop new file mode 100644 index 000000000000..8e8736fdeff8 --- /dev/null +++ b/flomo-electron.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Flomo-electron +Comment=浮墨笔记,像发微博一样记笔记,记录你想法的川流.全平台覆盖,还支持微信服务号输入. +Exec=flomo +Icon=flomo-electron +Terminal=false +StartupNotify=false +Categories=Application; |