blob: 1c16a8f0feee62e9b09db881514cff6c2ef5f051 (
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
|
# $Id: PKGBUILD 3771 2009-10-08 20:16:09Z ibiru $
# Maintainer: Alexander Fehr <pizzapunk gmail com>
# Contributor: William Rea <sillywilly@gmail.com>
pkgname=libtextcat
pkgver=2.2
pkgrel=6
pkgdesc="Library that implements N-gram-based text categorization"
arch=('i686' 'x86_64')
url="http://software.wise-guys.nl/libtextcat/"
license=('BSD')
depends=('glibc')
options=(!libtool)
source=(http://software.wise-guys.nl/download/$pkgname-$pkgver.tar.gz)
md5sums=('128cfc86ed5953e57fe0f5ae98b62c2e')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
install -D -m644 src/textcat.h $startdir/pkg/usr/include/textcat.h
mkdir -p $startdir/pkg/usr/share/libtextcat/{LM,ShortTexts}
install -m644 langclass/conf.txt $startdir/pkg/usr/share/libtextcat
install -m644 langclass/LM/*.lm $startdir/pkg/usr/share/libtextcat/LM
install -m644 langclass/ShortTexts/*.txt $startdir/pkg/usr/share/libtextcat/ShortTexts
install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
sed -i 's|LM|/usr/share/libtextcat/LM|' ${pkgdir}/usr/share/libtextcat/conf.txt
}
|