blob: ce9c481790873a0361b3c5f7fba21f4bbe7591f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Bruce Zhang krasjet
pkgname=fontbase
pkgver=2.20.7
pkgrel=1
pkgdesc="FontBase is the font manager of the new generation, built by designers, for designers."
arch=('x86_64' 'i686')
url="https://fontba.se/"
license=('custom:FontBase')
depends=('electron')
makedepends=('p7zip')
source=("$pkgname-$pkgver.AppImage::https://releases.fontba.se/linux/FontBase-$pkgver.AppImage")
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"
# 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 /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/{}" \;
}
sha256sums=('d21c2ab57aaa167875383c7858b139766c5c6003e6c2b5e6193e609046e8ba95')
|