2015-03-15 21:31:42 +08:00
|
|
|
#contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/fontforge
|
|
|
|
|
|
|
|
pkgname=fontforge
|
2015-04-14 18:48:13 +08:00
|
|
|
pkgver=20150330
|
|
|
|
pkgrel=1
|
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'
|
|
|
|
'zeromq' 'python2' 'desktop-file-utils' 'hicolor-icon-theme' )
|
|
|
|
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-04-14 18:48:13 +08:00
|
|
|
sha1sums=('73c9bbdbcf506f39b5b09f4be8fe38e171bfc48f'
|
2015-03-15 21:31:42 +08:00
|
|
|
'efbc7c9d3e95159f5600dc71f9cccb370e46bb94')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
export LIBZMQ_LIBS=-lzmq
|
|
|
|
export PYTHON=python2
|
|
|
|
./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"
|
|
|
|
}
|