diff options
Diffstat (limited to 'community/libtextcat')
-rw-r--r-- | community/libtextcat/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/community/libtextcat/PKGBUILD b/community/libtextcat/PKGBUILD new file mode 100644 index 000000000..1c16a8f0f --- /dev/null +++ b/community/libtextcat/PKGBUILD @@ -0,0 +1,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 +} |