Commits

Anonymous committed 6fef187

snowball-c: added .so build per user request.

Comments (0)

Files changed (1)

 depends=()
 provides=()
 source=(http://snowball.tartarus.org/dist/libstemmer_c.tgz)
-md5sums=('af2577aa6579335a858eb5a5fbe347ad')
+md5sums=('78e9d4bbb878191e3de6a7355711fa43')
 
 build() {
   cd ${srcdir}/libstemmer_c
+  make CC='gcc -fPIC' || return 1
 
-  make CC='gcc -fPIC' || return 1
+  mkdir -p ${pkgdir}/usr/lib/
+  gcc -shared -o ${pkgdir}/usr/lib/libstemmer.so -lstemmer -fpic -Wl,--whole-archive ${srcdir}/libstemmer_c/libstemmer.o -Wl,--no-whole-archive
+
   install -d ${pkgdir}/usr/bin || return 1 
   install ${srcdir}/libstemmer_c/stemwords ${pkgdir}/usr/bin || return 1
   install -d ${pkgdir}/usr/include || return 1