summaryrefslogtreecommitdiff
path: root/abiword-gtk2/PKGBUILD
blob: b00c364c7d6803ddd57fc31b6bbe8a3fdff99681 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: WorMzy Tykashi <wormzy.tykashi@gmail.com>
# Contributor: FadeMind <fademind@gmail.com>
# Contributor: Richard Jackson <rj@iinet.net.au>
pkgname=abiword-gtk2
_pkgname=abiword
pkgver=3.0.4
pkgrel=13
pkgdesc='Fully-featured word processor, GTk2, No plugins, Lite version'
arch=('i686' 'pentium4' 'x86_64')
license=('GPL')
_pinned_dependencies=(
  'cairo=1.17.2+25+gaee96d175'
  'gcc-libs=10.2.0'
  'glibc>=2.31'
  'libatk-1.0.so=0'
  'libfontconfig.so=1'
  'libfreetype.so=6'
  'libfribidi.so=0'
  'libgdk_pixbuf-2.0.so=0'
  'libgdk-x11-2.0.so=0'
  'libgio-2.0.so=0'
  'libglib-2.0.so=0'
  'libgobject-2.0.so=0'
  'libgsf=1.14.47'
  'libgthread-2.0.so=0'
  'libgtk-x11-2.0.so=0'
  'libharfbuzz.so=0'
  'libjpeg.so=8'
  'libpango-1.0.so=0'
  'libpangocairo-1.0.so=0'
  'libpangoft2-1.0.so=0'
  'libpng=1.6.37'
  'librsvg-2.so=2'
  'libx11=1.7.0'
  'libxml2=2.9.10'
  'libxslt=1.1.34'
  'zlib=1:1.2.11'
)
depends=('wv' 'enchant' 'desktop-file-utils' "${_pinned_dependencies[@]}")
makedepends=('pkgconfig' 'boost' 'autoconf-archive')
conflicts=('abiword' 'abiword-plugins')
url='http://www.abisource.com'
source=("$_pkgname-$pkgver.tar.gz::https://www.abisource.com/downloads/$_pkgname/$pkgver/source/$_pkgname-$pkgver.tar.gz"
        enchant-2.1.patch)
sha512sums=('121708e010cef6722cab5622dc762f2f92c46e43b65b90b881b4f25ff32c1696fa2d281a3a6f2c04d5b9231bbbd0040281e9d4d7e594ec0ace6caae9c9021ec4'
            '323d4695b2b63ecb62ac16399853bdcacc96f67deb4e58408eab727e113ed593d2d3c5b90951c7653c2ddac6a14950162e314a461b592e2c95df0294459cbe96')

prepare() {
  cd $_pkgname-$pkgver

  # Replace deprecated enchant functions
  patch -Np1 -i ../enchant-2.1.patch
}

build() {
  cd $_pkgname-$pkgver
#  libtoolize --force
#  aclocal
#  autoheader
#  automake --add-missing --force-missing
#  autoconf || autoconf
#  autoreconf -fi || autoreconf -i || autoreconf -i 
  autoreconf -fi
  ./configure --prefix=/usr \
    --enable-shared \
    --disable-static \
    --with-gtk2 \
    --enable-clipart \
    --enable-templates \
    --without-redland \
    --without-libical \
    --disable-builtin-plugins \
    --disable-default-plugins \
    --disable-collab-backend-service \
    --disable-collab-backend-tcp
  make -C goffice-bits2
  make
}

package() {
  cd $_pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}