mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
43 lines
1.5 KiB
Bash
43 lines
1.5 KiB
Bash
# Contribution from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/fontforge
|
|
|
|
pkgname=fontforge
|
|
pkgver=20160403
|
|
pkgrel=1
|
|
pkgdesc="An outline and bitmap font editor"
|
|
arch=('x86_64')
|
|
url="http://www.fontforge.org"
|
|
license=('BSD')
|
|
depends=('libtool' 'libxkbui' 'libxi' 'pango' 'giflib' 'libtiff' 'libspiro>=0.5' 'libxml2' 'libunicodenames'
|
|
'zeromq' 'python3' 'desktop-file-utils' 'hicolor-icon-theme' )
|
|
install=${pkgname}.install
|
|
source=("https://github.com/fontforge/fontforge/archive/${pkgver}.tar.gz"
|
|
'http://fontforge.org/cidmaps.tgz')
|
|
sha512sums=('cae068e9fe6de41a2a09945596d0ad3f552028517dacc99f4399d95d86eb58d92da2d0549ab07869287f903e8e5f9dd9e54beee01f9fe1c1cc1c3b9da112ac25'
|
|
'a85daeb16b6650179f54ff9e35915c4c7bb5e2efca0455262a271063849484dbba08c4b493c4ca08552365205995cad5c3770ba7b3cadb2e5c386626dc46636c')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
export LIBZMQ_LIBS=-lzmq
|
|
./bootstrap --force
|
|
./configure \
|
|
--prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--enable-python-extension
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -d "${pkgdir}/usr/share/fontforge"
|
|
install -m644 ../Adobe-* "${pkgdir}/usr/share/fontforge"
|
|
|
|
install -d "${pkgdir}/usr/share/icons"
|
|
cp -a desktop/icons "${pkgdir}/usr/share/icons/hicolor"
|
|
rm -fr "${pkgdir}/usr/share/icons/hicolor/src"
|
|
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
install -Dm644 desktop/fontforge.desktop "${pkgdir}/usr/share/applications/fontforge.desktop"
|
|
}
|