git » mariadb.git » commit b21a73c

* add new explicitly linked dependencies

author Bartłomiej Piotrowski
2015-11-23 22:32:28 UTC
committer Bartłomiej Piotrowski
2015-11-23 22:32:28 UTC
parent cbadecd616a8bbafcc995756a3bd5fec3508aa00

* add new explicitly linked dependencies

* fix creating the /var/lib/mysql directory (FS#45552)

PKGBUILD +6 -8

diff --git a/PKGBUILD b/PKGBUILD
index 3d704f6..247b9fa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,14 +4,12 @@ pkgbase=mariadb
 pkgname=('libmariadbclient' 'mariadb-clients' 'mytop' 'mariadb')
 pkgver=10.1.9
 _pkgver=${pkgver/.a/a}
-pkgrel=1
+pkgrel=2
 arch=('i686' 'x86_64')
 license=('GPL')
 url='http://mariadb.org/'
 makedepends=('cmake' 'openssl' 'zlib' 'libaio' 'libxml2' 'openssl' 'pcre'
-             'jemalloc' 'lz4')
-source=(http://ftp.heanet.ie/mirrors/mariadb/mariadb-$pkgver/source/mariadb-$pkgver.tar.gz
-        mariadb.service
+             'jemalloc' 'lz4' 'boost') source=(http://ftp.heanet.ie/mirrors/mariadb/mariadb-$pkgver/source/mariadb-$pkgver.tar.gz mariadb.service
         mariadb-post.sh
         mariadb-tmpfile.conf)
 md5sums=('71d0e2408a671e1125c1310ce657f688'
@@ -70,7 +68,7 @@ build() {
 
 package_libmariadbclient() {
   pkgdesc='MariaDB client libraries'
-  depends=('openssl' 'libaio' 'zlib' 'pcre')
+  depends=('openssl' 'libaio' 'zlib' 'pcre' 'lz4' 'lzo' 'xz')
   conflicts=('libmysqlclient')
   provides=("libmysqlclient=$pkgver")
   options=('staticlibs')
@@ -122,7 +120,7 @@ package_mariadb() {
   backup=('etc/mysql/my.cnf')
   install=mariadb.install
   depends=('mariadb-clients' 'inetutils' 'libaio' 'libxml2' 'pcre' 'jemalloc'
-           'lz4')
+           'lz4' 'boost-libs' 'lzo')
   optdepends=('perl-dbd-mysql: for mysqlhotcopy, mysql_convert_table_format and mysql_setpermission')
   conflicts=('mysql')
   provides=("mysql=$pkgver")
@@ -136,8 +134,8 @@ package_mariadb() {
   install -Dm644 ../mariadb.service "$pkgdir"/usr/lib/systemd/system/mysqld.service
   install -Dm644 ../mariadb-tmpfile.conf "$pkgdir"/usr/lib/tmpfiles.d/mysql.conf
 
-  install -dm700 var/lib/mysql
-  chown -R 89:89 var/lib/mysql &>/dev/null
+  install -dm700 "$pkgdir"/var/lib/mysql
+  chown -R 89:89 "$pkgdir"/var/lib/mysql &>/dev/null
 
   # provided by libmariadbclient
   cd "$pkgdir"