[arch-commits] Commit in dia/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 13:23:59 UTC 2020


    Date: Tuesday, July 7, 2020 @ 13:23:59
  Author: felixonmars
Revision: 658444

archrelease: copy trunk to community-staging-x86_64

Added:
  dia/repos/community-staging-x86_64/
  dia/repos/community-staging-x86_64/PKGBUILD
    (from rev 658443, dia/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: dia/repos/community-staging-x86_64/PKGBUILD (from rev 658443, dia/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 13:23:59 UTC (rev 658444)
@@ -0,0 +1,51 @@
+# Maintainer: Thorsten Töpper <atsutane-tu at freethoughts.de>
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Juergen Hoetzel <juergen at archlinux.org>
+# Contributor: Gregor Ibic <gregor.ibic at intelicom.si>
+
+pkgname=dia
+pkgver=0.97.3
+pkgrel=6
+pkgdesc="A GTK+ based diagram creation program"
+arch=('x86_64')
+license=('GPL')
+url="http://live.gnome.org/Dia"
+depends=('libxslt' 'gtk2')
+makedepends=('intltool' 'python2' 'docbook-xsl')
+optdepends=('python2')
+options=('docs' '!emptydirs')
+source=("ftp://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.97/${pkgname}-${pkgver}.tar.xz")
+md5sums=('0e744a0f6a6c4cb6a089e4d955392c3c')
+
+prepare() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  for file in `find -type f -name '*.py'`; do
+      sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' "$file"
+  done
+  sed -i 's#python2\.1#python2 python2.1#' configure
+  sed -i 's#freetype-config --cflags#pkg-config --cflags freetype2#' configure
+  sed -i 's#freetype-config --libs#pkg-config --libs freetype2#' configure
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  export PYTHON=/usr/bin/python2
+  ./configure --prefix=/usr \
+    --with-cairo \
+    --with-python \
+    --disable-gnome \
+    --with-hardbooks
+  sed -i 's#SUBDIRS = lib objects plug-ins shapes app bindings samples po sheets data doc tests installer#SUBDIRS = lib objects plug-ins shapes app bindings samples po sheets data tests installer#' Makefile
+  make
+  cd doc
+  make html
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+  cd doc
+  make DESTDIR="${pkgdir}" install-html
+  ln -sf ../doc/dia/html "${pkgdir}"/usr/share/dia/help
+}



More information about the arch-commits mailing list