[arch-commits] Commit in fontforge/trunk (PKGBUILD)

Gaetan Bisson bisson at nymeria.archlinux.org
Sun Jan 5 05:36:51 UTC 2014


    Date: Sunday, January 5, 2014 @ 06:36:51
  Author: bisson
Revision: 203198

tentative upstream update

Modified:
  fontforge/trunk/PKGBUILD

----------+
 PKGBUILD |   35 ++++++++++++-----------------------
 1 file changed, 12 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-01-05 05:25:55 UTC (rev 203197)
+++ PKGBUILD	2014-01-05 05:36:51 UTC (rev 203198)
@@ -4,8 +4,9 @@
 # Contributor: William Rea <sillywilly at gmail.com>
 
 pkgname=fontforge
-pkgver=20120731_b
-pkgrel=6
+_pkgver=2.0.20140101
+pkgver=${_pkgver##*.}
+pkgrel=1
 pkgdesc='Outline and bitmap font editor'
 url='http://fontforge.sourceforge.net/'
 arch=('i686' 'x86_64')
@@ -12,40 +13,28 @@
 license=('BSD')
 depends=('libxkbui' 'libxi' 'libxml2' 'pango' 'giflib' 'libtiff' 'python2' 'libspiro'
          'desktop-file-utils' 'gtk-update-icon-cache' 'hicolor-icon-theme')
-source=("http://downloads.sourceforge.net/project/fontforge/fontforge-source/fontforge_full-${pkgver//_/-}.tar.bz2"
+source=("https://github.com/fontforge/fontforge/archive/${_pkgver}.tar.gz"
         'http://fontforge.org/cidmaps.tgz')
-sha1sums=('b520f532b48e557c177dffa29120225066cc4e84'
+sha1sums=('abce297e53e8b6ff6f08871e53d1eb0be5ab82e7'
           'efbc7c9d3e95159f5600dc71f9cccb370e46bb94')
 
-# git clone git://fontforge.git.sourceforge.net/gitroot/fontforge/fontforge; cd fontforge; git archive --prefix=${pkgname}-${pkgver}/ master | xz > ../${pkgname}-${pkgver}.tar.xz
-# source=("ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.xz")
-
 options=('!makeflags')
 install=install
 
-prepare() {
-	cd "${srcdir}/${pkgname}-${pkgver//_/-}"
-	sed 's/python /python2 /g' -i Makefile.dynamic.in
-	sed 's/\(DGifOpenFileName([^)]*\))/\1,NULL)/g' -i gutils/gimagereadgif.c
-}
-
 build() {
-	cd "${srcdir}/${pkgname}-${pkgver//_/-}"
+	cd "${srcdir}/${pkgname}-${_pkgver}"
+	export PYTHON=python2
+	./autogen.sh
 	./configure \
 		--prefix=/usr \
 		--mandir=/usr/share/man \
-		--enable-type3 \
-		--enable-devicetables \
-		--enable-double \
-		--with-regular-link \
-		--with-python=python2 \
-		--enable-pyextension \
+		--enable-python-extension \
 
 	make
 }
 
 package() {
-	cd "${srcdir}/${pkgname}-${pkgver//_/-}"
+	cd "${srcdir}/${pkgname}-${_pkgver}"
 	make DESTDIR="${pkgdir}" install
 
 	install -d "${pkgdir}/usr/share/fontforge"
@@ -52,9 +41,9 @@
 	install -m644 ../Adobe-* "${pkgdir}/usr/share/fontforge"
 
 	install -d "${pkgdir}/usr/share/icons"
-	cp -a Packaging/icons "${pkgdir}/usr/share/icons/hicolor"
+	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 Packaging/fontforge.desktop "${pkgdir}/usr/share/applications/fontforge.desktop"
+	install -Dm644 desktop/fontforge.desktop "${pkgdir}/usr/share/applications/fontforge.desktop"
 }




More information about the arch-commits mailing list