core/fontforge/PKGBUILD

39 lines
1.2 KiB
Bash
Raw Normal View History

2010-05-24 23:40:27 +08:00
pkgname=fontforge
2018-07-01 00:40:59 +08:00
pkgver=20170731
pkgrel=1
2018-07-01 00:40:59 +08:00
pkgdesc='Outline and bitmap font editor'
url='https://fontforge.github.io/'
arch=('x86_64')
2010-05-24 23:40:27 +08:00
license=('BSD')
2018-07-01 00:40:59 +08:00
makedepends=('git')
depends=('libtool' 'libxkbui' 'libxi'
'pango' 'giflib' 'libtiff' 'libxml2' 'libspiro' 'libunicodenames' 'zeromq'
'python3' 'desktop-file-utils' 'gtk-update-icon-cache' 'hicolor-icon-theme')
source=("https://github.com/fontforge/fontforge/archive/${pkgver}.tar.gz"
'https://fontforge.github.io/cidmaps.tgz')
sha256sums=('3f53d06caba2a96dc498df81717e35504815046b3178e811c85c4cc135492d8c'
'1bf9c7eb8835e6ed94e62cb49f1141bc046c562849e52e6c3c7f1d7cfc95c7b3')
2010-05-24 23:40:27 +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 -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 desktop/fontforge.desktop "${pkgdir}/usr/share/applications/fontforge.desktop"
2010-05-24 23:40:27 +08:00
}