contrib/dia/Pkgfile

44 lines
1.3 KiB
Plaintext
Raw Normal View History

2006-11-19 22:26:53 +01:00
# Description: GTK+ Diagramming Creation Software.
2020-12-05 08:26:06 +01:00
# URL: https://wiki.gnome.org/action/show/Apps/Dia
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2020-05-24 16:55:40 +02:00
# Depends on: docbook-xsl gtk libart_lgpl python xorg-libxdamage
2006-11-14 00:01:22 +01:00
name=dia
2015-03-03 03:56:45 +01:00
version=0.97.3
2020-05-24 17:18:13 +02:00
release=2
2020-12-05 08:26:06 +01:00
source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz
2020-05-24 16:55:40 +02:00
# https://gitweb.gentoo.org/repo/gentoo.git/tree/app-office/dia/files
dia-0.97.2-underlinking.patch dia-0.97.3-freetype_pkgconfig.patch
dia-0.97.0-gnome-doc.patch)
2006-11-14 00:01:22 +01:00
build() {
2011-12-29 17:40:42 +01:00
cd $name-$version
2020-05-24 16:55:40 +02:00
# https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/dia
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
export PYTHON=/usr/bin/python2
2006-11-14 00:01:22 +01:00
2020-05-24 16:55:40 +02:00
patch -Np1 -i $SRC/dia-0.97.2-underlinking.patch
patch -Np1 -i $SRC/dia-0.97.3-freetype_pkgconfig.patch
patch -Np1 -i $SRC/dia-0.97.0-gnome-doc.patch
2007-05-14 01:02:30 +02:00
./configure \
--prefix=/usr \
2020-05-24 16:55:40 +02:00
--mandir=/usr/share/man \
--with-cairo \
2015-03-03 03:56:45 +01:00
--with-python \
2020-05-24 16:55:40 +02:00
--without-hardbooks \
--disable-gnome \
--disable-nls
2006-11-14 00:01:22 +01:00
2008-03-16 16:03:00 +01:00
make
make DESTDIR=$PKG install
2020-05-24 17:18:13 +02:00
/usr/bin/python -mcompileall $PKG
2011-12-29 17:40:42 +01:00
rm -r \
$PKG/usr/share/locale \
$PKG/usr/share/doc \
$PKG/usr/share/man
2006-11-14 00:01:22 +01:00
}