blob: 22657fe4a522a1ebf9c1ae64dd81ec6b4256819f (
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
|
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=libots
pkgver=0.5.0
pkgrel=7
pkgdesc='Open Text Summarizer'
url='https://libots.sourceforge.net/'
arch=('x86_64')
license=('GPL')
depends=('libxml2' 'glib2' 'popt')
source=("https://sources.archlinux.org/other/packages/libots/ots-$pkgver.tar.gz"
libots-fix-build.patch
libots-fix-build-gcc14-math-include.patch)
sha256sums=('ea908d22256166d1200fef55a82dd3ea8e096a249eaaf0b926f3577f1a63e137'
'0c5033302ffe8d87dd2f85745ea2a531ac573a901302d1b15bf51a3327102f6a'
'0992cd147e96f2cc9e81bf6c7d611643ba794021466ad6937e984607fb6fa9f2')
prepare() {
cd ots-${pkgver}
touch gtk-doc.make
sed 's/en.xml$//' -i dic/Makefile.am
patch -p1 -i ../libots-fix-build.patch # Fix makefile dependencies (Debian)
patch -p1 -i ../libots-fix-build-gcc14-math-include.patch # add missing math.h include
libtoolize --force
aclocal
automake --add-missing --force
autoconf
}
build() {
cd ots-${pkgver}
./configure --prefix=/usr
make -j1
}
package() {
cd ots-${pkgver}
make DESTDIR="${pkgdir}" install
}
|