# Packaged by Didier Spaier # Build and install protobuf first pkgname=$(pwd|sed "s,.*/,,") pkgver=$(echo ${pkgname}-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev) pkgrel=4slint source=("$(echo ${pkgname}-*.tar.?z*)") docs=("copying" "authors" "news" "license" "license.*" "changes") options=("nosrcpack") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname (plugin required by the CCSM)" ) # compiling against protobuf needs -std=c++11 CFLAGS="-O2 -fPIC -std=c++11" build() { cd $SRC/$pkgname-$pkgver || return 1 ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --infodir=/usr/info \ --mandir=/usr/man \ --disable-static \ --build=$ARCH-slackware-linux make DESTDIR=$PKG make install }