mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
|
# $Id: PKGBUILD 3770 2009-10-08 20:11:58Z dgriffiths $
|
||
|
# 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
|
||
|
}
|