LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File PKGBUILD of Package strusmodule (Project home:PatrickFrey)

# Contributor: Patrick Frey <patrickpfrey@yahoo.com> 
# Maintainer: Patrick Frey <patrickpfrey@yahoo.com> 

pkgname=strusmodule
_deppkgver=0.16
_mainpkgver=0.16.0
pkgver=${_mainpkgver}.r0
pkgrel=1
pkgdesc='Library that provides a module loader and an interface to define loadable modules out of libraries to offer some expandability to strus.'
license=('MPL2')
arch=('i686' 'x86_64')
url="http://project-strus.net"
depends=('boost>=1.57' 'boost-libs>=1.57' "strusbase>=${_deppkgver}" "strus>=${_deppkgver}" "strusanalyzer>=${_deppkgver}" "strustrace>=${_deppkgver}")
makedepends=('cmake')
source=("${pkgname}-${_mainpkgver}.tar.gz")

build() {
  cd ${srcdir}/${pkgname}-${_mainpkgver}

  msg "Building..."
  mkdir build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DLIB_INSTALL_DIR=lib ..
  make
}

package() {
  cd ${srcdir}/${pkgname}-${_mainpkgver}

  msg "Installing.."
  cd build
  make DESTDIR=${pkgdir} install
}

check() {
  cd ${srcdir}/${pkgname}-${_mainpkgver}

  msg "Testing..."
  cd build
  make test
}

md5sums=('4520eeb95f0875e0514782cf522816f3')