Last active
May 2, 2025 03:25
-
-
Save witchymary/1eeb6595740eb81d3a8e55ac15b74d7d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Bruce Zhang krasjet / witchymary (cracked ver.) | |
pkgname=fontbase | |
pkgver=2.19.4 | |
pkgrel=1 | |
pkgdesc="FontBase is the font manager of the new generation, built by designers, for designers. (Cracked)" | |
arch=('x86_64' 'i686') | |
url="https://fontba.se/" | |
license=('custom:FontBase') | |
depends=('electron') | |
makedepends=('p7zip' | |
'python') | |
source=("$pkgname-$pkgver.AppImage::https://releases.fontba.se/linux/FontBase-$pkgver.AppImage" | |
"https://gist.githubusercontent.com/tkito16/de4be3b416d4428227851419f2dae009/raw/fontbase-crack.py") | |
md5sums=('SKIP' | |
'SKIP') | |
prepare() { | |
mkdir -p "$pkgname" | |
cd "$srcdir/$pkgname" | |
7z x "$srcdir/$pkgname-$pkgver.AppImage" | |
echo "https://fontba.se/legal/terms" > "$srcdir/COPYRIGHT" | |
} | |
package() { | |
cd "$srcdir/$pkgname" | |
python ../../fontbase-crack.py "$srcdir/$pkgname/resources" --no-wait | |
rm ../../fontbase-crack.py | |
# Install application | |
cd resources/app | |
find . -type f -exec install -Dm644 {} "$pkgdir/usr/share/fontbase/app/{}" \; | |
cd ../plugins | |
find . -type f -exec install -Dm644 {} "$pkgdir/usr/share/fontbase/plugins/{}" \; | |
# Install start script | |
echo "#!/usr/bin/env sh | |
exec electron --no-sandbox --ozone-platform-hint=auto /usr/share/fontbase/app/ \$@ | |
" > "$srcdir/fontbase.sh" | |
install -Dm755 "$srcdir/fontbase.sh" "$pkgdir/usr/bin/fontbase" | |
# Install desktop file | |
sed -i 's/Exec=AppRun/Exec=fontbase/' "$srcdir/$pkgname/fontbase-app.desktop" | |
install -Dm644 "$srcdir/$pkgname/fontbase-app.desktop" "$pkgdir/usr/share/applications/fontbase.desktop" | |
# Install license | |
install -Dm644 "$srcdir/COPYRIGHT" "$pkgdir/usr/share/licenses/fontbase/COPYRIGHT" | |
# Install icons | |
cd "$srcdir/$pkgname/usr/share/icons/hicolor" | |
find . -type f -exec install -Dm644 {} "$pkgdir/usr/share/icons/hicolor/{}" \; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can you make for windows?