Advertisement
Marcel-

mysql-connector-c++ PKGBUILD

Sep 17th, 2014
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.80 KB | None | 0 0
  1. pkgname=mysql-connector-c++
  2. pkgver=1.1.4
  3. pkgrel=1
  4. pkgdesc="A MySQL database connector for C++"
  5. arch=('i686' 'x86_64')
  6. url="http://dev.mysql.com/downloads/connector/cpp/"
  7. license=('GPL')
  8. depends=('libmysqlclient' 'boost-libs')
  9. makedepends=('cmake' 'boost')
  10. source=("http://dev.mysql.com/get/Downloads/Connector-C++/${pkgname}-${pkgver}.tar.gz")
  11. md5sums=('7239a4430efd4d0189c4f24df67f08e5')
  12.  
  13. build() {
  14.   cd "${srcdir}"/${pkgname}-${pkgver}
  15.   cmake . -DCMAKE_INSTALL_PREFIX=/usr \
  16.     -DCMAKE_BUILD_TYPE=Release \
  17.     -DMYSQLCPPCONN_BUILD_EXAMPLES=OFF \
  18.     -DMYSQL_LIB=/usr/lib/libmysqlclient.so
  19.   make
  20. }
  21.  
  22. package() {
  23.   cd "${srcdir}"/${pkgname}-${pkgver}
  24.   make DESTDIR="${pkgdir}" install
  25.  
  26.   rm "${pkgdir}"/usr/{ANNOUNCEMENT,COPYING,README,INSTALL,Licenses_for_Third-Party_Components.txt}
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement