desktop/fontforge/PKGBUILD

43 lines
1.5 KiB
Bash
Raw Normal View History

2015-08-26 19:27:00 +08:00
# Contribution from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/fontforge
2015-03-15 21:31:42 +08:00
pkgname=fontforge
2015-08-26 19:27:00 +08:00
pkgver=20150824
2015-12-01 04:51:35 +08:00
pkgrel=2
2015-03-15 21:31:42 +08:00
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' 'libxml2' 'libunicodenames'
2015-05-25 21:23:59 +08:00
'zeromq' 'python3' 'desktop-file-utils' 'hicolor-icon-theme' )
2015-03-15 21:31:42 +08:00
install=${pkgname}.install
2015-04-14 18:48:13 +08:00
source=("https://github.com/fontforge/fontforge/archive/${pkgver}.tar.gz"
2015-03-15 21:31:42 +08:00
'http://fontforge.org/cidmaps.tgz')
2015-08-26 19:27:00 +08:00
sha512sums=('7ac53642375410d5553b1beff1c82b63ec5ad7d0c453a0c5c3a4023e429805142d50bca883cb6f32c156c8a475c606f5d47960980069073321fa55d03ffe26ef'
2015-05-25 21:23:59 +08:00
'a85daeb16b6650179f54ff9e35915c4c7bb5e2efca0455262a271063849484dbba08c4b493c4ca08552365205995cad5c3770ba7b3cadb2e5c386626dc46636c')
2015-03-15 21:31:42 +08:00
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"
}