Date: Saturday, April 10, 2010 @ 12:16:58 Author: andyrtr Revision: 77081
upgpkg: libmythes 1.2.0-1 new version 1.2.0; hunspell has finally taken it over Modified: libmythes/trunk/PKGBUILD ----------+ PKGBUILD | 40 ++++++++++++++++++---------------------- 1 file changed, 18 insertions(+), 22 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2010-04-10 16:10:54 UTC (rev 77080) +++ PKGBUILD 2010-04-10 16:16:58 UTC (rev 77081) @@ -2,36 +2,32 @@ # Maintainer: AndyRTR <[email protected]> pkgname=libmythes -pkgver=1.1 -_origname=MyThes +pkgver=1.2.0 pkgrel=1 pkgdesc="a simple thesaurus, contains static library and header file needed to develop applications using mythes + perl script to create index files" arch=('i686' 'x86_64') -url="http://lingucomponent.openoffice.org/thesaurus.html" +url="http://hunspell.sourceforge.net/ " license=('custom') depends=('glibc' 'perl') -options=('force' '!makeflags') -source=(https://sourceforge.net/projects/hunspell/files/${_origname}/$pkgver/${_origname}-${pkgver}.tar.gz) -#ftp://ftp.archlinux.org/other/openoffice/openoffice-base-${_OO_milestone}.tar.bz2) -# old source from http://lingucomponent.openoffice.org is terribly outdated and won't build -#md5sums=('23370db83cc40bfbf22cedc460fd6b85') -md5sums=('cdf39b80e1bb6551f05556026cfa1222') +options=('force' '!libtool') +provides=('mythes') +source=(http://downloads.sourceforge.net/hunspell/${pkgname/lib/}-${pkgver}.tar.gz) +md5sums=('067201ea8b126597670b5eff72e1f66c') -# package has all files but a libmythes_pic.a from the debian pkg - build() { -# cd ${srcdir}/${_OO_milestone}/lingucomponent/source/thesaurus/mythes - # add a needed header -# cp ${srcdir}/${_OO_milestone}/lingucomponent/inc/pch/precompiled_lingucomponent.hxx . - cd ${srcdir}/${_origname}-$pkgver - # build -# make libmythes.a || return 1 + cd ${srcdir}/${pkgname/lib/}-$pkgver + ./configure --prefix=/usr --disable-static make || return 1 + # run the example program: + ./example th_en_US_new.idx th_en_US_new.dat checkme.lst + # run the example program with stemming and morphological generation: + # e.g. to check mouse, mice, rodents, eats, eaten, ate, eating etc. words + ./example morph.idx morph.dat morph.lst morph.aff morph.dic +} + +package() { + cd ${srcdir}/${pkgname/lib/}-$pkgver make DESTDIR=$pkgdir install || return 1 - # install -# install -Dm644 libmythes.a $pkgdir/usr/lib/libmythes.a -# install -Dm644 mythes.hxx $pkgdir/usr/include/mythes.hxx -# install -Dm755 ${srcdir}/${_OO_milestone}/dictionaries/util/th_gen_idx.pl $pkgdir/usr/share/mythes/th_gen_idx.pl # license -# install -Dm644 ${srcdir}/${_OO_milestone}/lingucomponent/source/thesaurus/mythes/license.readme $pkgdir/usr/share/licenses/$pkgname/LICENSE + install -Dm644 ${srcdir}/${pkgname/lib/}-$pkgver/COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING }
