Skip to content

Instantly share code, notes, and snippets.

@akhenakh
Created August 2, 2014 00:52
Show Gist options
  • Save akhenakh/a2a2a0ff6fd643860502 to your computer and use it in GitHub Desktop.
Save akhenakh/a2a2a0ff6fd643860502 to your computer and use it in GitHub Desktop.
libstemmer archlinux armv6
# Contributor: Andreas Baumann <abaumann at yahoo dot com>
pkgname=snowball-c
pkgver=20140401
pkgrel=1
pkgdesc="Snowball rule-based stemming algorithms (shared lib + stemwords executable)"
arch=('i686' 'x86_64', 'armv6h')
url='http://snowball.tartarus.org/'
license=('BSD')
makedepends=()
depends=()
provides=()
source=(http://snowball.tartarus.org/dist/libstemmer_c.tgz)
md5sums=('fc7f6930d843bc65e69f9151262f4153')
build() {
cd ${srcdir}/libstemmer_c
CC='gcc -O2 -fPIC'
make CC="$CC"
install -d ${pkgdir}/usr/lib
$CC -shared -o ${pkgdir}/usr/lib/libstemmer.so $CFLAGS -Wl,--whole-archive ${srcdir}/libstemmer_c/libstemmer.o -Wl,--no-whole-archive $LDFLAGS
install -d ${pkgdir}/usr/bin
install ${srcdir}/libstemmer_c/stemwords ${pkgdir}/usr/bin
install -d ${pkgdir}/usr/include
install ${srcdir}/libstemmer_c/include/libstemmer.h ${pkgdir}/usr/include
#install ${srcdir}/libstemmer_c/libstemmer.o ${pkgdir}/usr/lib/libstemmer.a
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment