fontforge: 2014-11-2 and dependencies imported

This commit is contained in:
Neophytos Kolokotronis 2015-02-23 10:09:58 +00:00
parent 7586298458
commit 382048c68c
6 changed files with 164 additions and 27 deletions

View File

@ -1,38 +1,54 @@
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
#contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/fontforge
pkgname=fontforge
pkgver=20120731
_pkgver=20120731-b
pkgrel=2
_pkgver=2014-11-26
pkgver=${_pkgver//-/}
pkgrel=1
pkgdesc="An outline and bitmap font editor"
arch=('x86_64')
url="http://fontforge.sourceforge.net"
url="http://www.fontforge.org"
license=('BSD')
depends=('libxkbui' 'libxi' 'libxml2' 'pango' 'giflib' 'libpng' 'libtiff' 'libjpeg-turbo' 'python2')
options=('!libtool' '!makeflags')
source=("http://sourceforge.net/projects/fontforge/files/fontforge-source/fontforge_full-${_pkgver}.tar.bz2")
md5sums=('a8a90473a97da87e45f66d11007b6e7c')
depends=('libtool' 'libxkbui' 'libxi' 'pango' 'giflib' 'libtiff' 'libspiro' 'libxml2' 'libunicodenames'
'zeromq' 'python2' 'desktop-file-utils' 'hicolor-icon-theme' )
install=${pkgname}.install
source=("http://github.com/fontforge/fontforge/releases/download/${pkgver}/fontforge-${_pkgver}-Unix-Source.tar.gz"
'http://fontforge.org/cidmaps.tgz')
sha1sums=('ecd776480a47cdcbe1b30ce275172d7d52288e77'
'efbc7c9d3e95159f5600dc71f9cccb370e46bb94')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
rm -fr libltdl
for i in m4/*.m4; do
if [[ ! -L $i ]]; then continue; fi
j=$(readlink "$i")
ln -sf "${j/aclocal\//aclocal\/lt}" "$i"
done
}
build() {
cd "${srcdir}/${pkgname}-${_pkgver}"
./configure --prefix=/usr \
cd "${srcdir}/${pkgname}-${pkgver}"
export LIBZMQ_LIBS=-lzmq
export PYTHON=python2
./bootstrap --force
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--enable-type3 \
--enable-double \
--enable-devicetables \
--with-regular-link \
--with-python2 \
--enable-pyextensions
--enable-python-extension
make
}
package() {
cd "${srcdir}/${pkgname}-${_pkgver}"
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
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"
}

View File

@ -0,0 +1,12 @@
post_upgrade() {
update-desktop-database -q
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
post_install() {
post_upgrade
}
post_remove() {
post_upgrade
}

28
libsodium/PKGBUILD Normal file
View File

@ -0,0 +1,28 @@
#contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/libsodium
pkgname=libsodium
pkgver=1.0.2
pkgrel=1
pkgdesc="P(ortable|ackageable) NaCl-based crypto library"
arch=('x86_64')
url="https://github.com/jedisct1/libsodium"
license=('custom:ISC')
depends=('glibc')
source=("http://download.dnscrypt.org/$pkgname/releases/$pkgname-${pkgver}.tar.gz")
sha512sums=('15fc47516f0e35906c1c304205fa991e74a273e4e6fc2186b6c16f0e41523de24493e149262b97ef03e4adc221232372ef1f283c4c23f96e4c5d99023d361e14')
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr
make
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
# install license
install -d -m 755 "$pkgdir/usr/share/licenses/$pkgname"
install -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

30
libspiro/PKGBUILD Normal file
View File

@ -0,0 +1,30 @@
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/libspiro
pkgname=libspiro
pkgver=0.3.20150131
pkgrel=1
pkgdesc='Simplifies the drawing of beautiful curves'
url='https://github.com/fontforge/libspiro'
license=('GPL')
arch=('x86_64')
source=("https://github.com/fontforge/libspiro/archive/${pkgver}.tar.gz")
sha1sums=('fd897b4ae9640de9d395f4c037dd6ff779c1e8ca')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
autoreconf -i
automake --foreign -Wall
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export LDFLAGS=
./configure --prefix=/usr
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -Dm644 libspiro.pc "${pkgdir}"/usr/lib/pkgconfig/libspiro.pc
}

22
libunicodenames/PKGBUILD Normal file
View File

@ -0,0 +1,22 @@
# Contributions from Arch: https://www.archlinux.org/packages/extra/i686/libunicodenames/
pkgname=libunicodenames
pkgver=1.1.0_beta1
pkgrel=1
pkgdesc='Library for retrieving Unicode annotation data'
url='https://bitbucket.org/sortsmill/libunicodenames'
arch=('x86_64')
license=('GPL3')
source=("https://bitbucket.org/sortsmill/${pkgname}/downloads/${pkgname}-${pkgver}.tar.xz")
sha1sums=('f82d9f99d534144dd4c28c28ecff029f3116c5b4')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr
make PREFIX=/usr
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make PREFIX=/usr DESTDIR="${pkgdir}" install
}

29
zeromq/PKGBUILD Normal file
View File

@ -0,0 +1,29 @@
# Contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/zeromq
pkgname=zeromq
pkgver=4.0.5
pkgrel=1
pkgdesc="Fast messaging system built on sockets. C and C++ bindings. aka 0MQ, ZMQ."
arch=('x86_64')
url="http://www.zeromq.org"
license=('LGPL')
depends=('gcc-libs' 'util-linux' 'libsodium')
makedepends=('python2')
options=('staticlibs')
source=(http://download.zeromq.org/$pkgname-$pkgver.tar.gz
https://raw.githubusercontent.com/zeromq/cppzmq/1f05e0d11/zmq.hpp)
md5sums=('73c39f5eb01b9d7eaf74a5d899f1d03d'
'6a7b5e04ff4a55c75683aa9fa7ec8e5e')
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure prefix=/usr --with-pgm --with-libsodium
sed -i 's/python$/&2/' foreign/openpgm/build-staging/openpgm/pgm/{Makefile,version_generator.py}
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/zmq.hpp" "$pkgdir/usr/include/zmq.hpp"
}