diff options
author | Muflone | 2018-10-28 01:22:24 +0200 |
---|---|---|
committer | Muflone | 2018-10-28 01:22:24 +0200 |
commit | 70f04185e156fb53b86d9801564abe209145ec33 (patch) | |
tree | 4d7c9058bef9a8930ccebc23a412fa99a7e01007 /PKGBUILD | |
parent | ebf896ea7224dc90303f7b35569934b7ead04c11 (diff) | |
download | aur-70f04185e156fb53b86d9801564abe209145ec33.tar.gz |
Updated pkgbase mysql 8.0.13-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 28 insertions, 10 deletions
@@ -5,28 +5,30 @@ pkgname=('mysql' 'libmysqlclient' 'mysql-clients') pkgbase=mysql -pkgver=8.0.12 +pkgver=8.0.13 pkgrel=1 pkgdesc="Fast SQL database server, community edition" arch=('x86_64') makedepends=('openssl' 'zlib' 'cmake' 'systemd-tools' 'libaio' 'jemalloc' - 'rpcsvc-proto' 'libtirpc') + 'rpcsvc-proto' 'libtirpc' 'icu') _boost_ver=1.67.0 license=('GPL') url="https://www.mysql.com/products/community/" -options=('!libtool') +options=('!libtool' '!ccache') # Sorry but actually ccache is not supported source=("https://dev.mysql.com/get/Downloads/MySQL-5.7/${pkgbase}-${pkgver}.tar.gz" "http://sourceforge.net/projects/boost/files/boost/${_boost_ver}/boost_${_boost_ver//./_}.tar.gz" "mysqld-post.sh" "mysqld-tmpfile.conf" "mysqld.service" - "my-default.cnf") -sha256sums=('69f16e20834dbc60cb28d6df7351deda323330b9de685d22415f135bcedd1b20' + "my-default.cnf" + "mysql-ld.so.conf") +sha256sums=('d85eb7f98b6aa3e2c6fe38263bf40b22acb444a4ce1f4668473e9e59fb98d62e' '8aa4e330c870ef50a896634c931adf468b21f8a69b77007e45c444151229f665' '368f9fd2454d80eb32abb8f29f703d1cf9553353fb9e1ae4529c4b851cb8c5dd' '2af318c52ae0fe5428e8a9245d1b0fc3bc5ce153842d1563329ceb1edfa83ddd' '50212165bdb09855b97b15a917464ba34f82edf30a0c43f9a0c93a27071df556' - '3cc3ba4149fb2f9e823601b9a414ff5b28a2a52f20bc68c74cc0505cf2d1832d') + '3cc3ba4149fb2f9e823601b9a414ff5b28a2a52f20bc68c74cc0505cf2d1832d' + 'e1c23fa0971a13d998f2790379b68c475438d05b6d6f2691b99051dbf497567f') build() { rm -rf build @@ -56,6 +58,7 @@ build() { -DINSTALL_SHAREDIR=share/mysql \ -DWITH_ZLIB=system \ -DWITH_SSL=system \ + -DWITH_ICU=system \ -DWITH_LIBWRAP=OFF \ -DCMAKE_EXE_LINKER_FLAGS='-ljemalloc' \ -DWITH_EXTRA_CHARSETS=complex \ @@ -67,8 +70,9 @@ build() { -DWITHOUT_EXAMPLE_STORAGE_ENGINE=ON \ -DWITHOUT_FEDERATED_STORAGE_ENGINE=ON \ -DCMAKE_C_FLAGS="-fPIC ${CFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer -fno-delete-null-pointer-checks" \ - -DCMAKE_CXX_FLAGS="-fPIC ${CXXFLAGS} -std=gnu++98 -fno-strict-aliasing -DBIG_JOINS=1 -felide-constructors -fno-delete-null-pointer-checks" \ - -DWITH_MYSQLD_LDFLAGS="-pie ${LDFLAGS},-z,now" \ + -DCMAKE_C_LINK_FLAGS="${LDFLAGS},-pie" \ + -DCMAKE_CXX_FLAGS="-fPIC ${CXXFLAGS} -std=gnu++11 -fno-strict-aliasing -DBIG_JOINS=1 -felide-constructors -fno-delete-null-pointer-checks" \ + -DCMAKE_CXX_LINK_FLAGS="${LDFLAGS},-pie" \ -DWITH_BOOST="../boost_${_boost_ver//./_}" make } @@ -123,7 +127,7 @@ package_mysql(){ pkgdesc="Fast SQL database server, community edition" backup=('etc/mysql/my.cnf') install="${pkgbase}.install" - depends=('mysql-clients' 'libsasl' 'zlib' 'jemalloc' 'libaio' 'libtirpc') + depends=('mysql-clients' 'libsasl' 'zlib' 'jemalloc' 'libaio' 'libtirpc' 'icu') conflicts=('mariadb') provides=("mariadb=${pkgver}" "mysql=${pkgver}") options=('emptydirs') @@ -136,10 +140,15 @@ package_mysql(){ install -m 644 -D "${srcdir}/mysqld-tmpfile.conf" "${pkgdir}/usr/lib/tmpfiles.d/mysqld.conf" install -m 755 -d "${pkgdir}/usr/lib/systemd/system" install -m 644 -D "${srcdir}/mysqld.service" "${pkgdir}/usr/lib/systemd/system/" + install -m 755 -d "${pkgdir}/etc/ld.so.conf.d" + install -m 644 -D "${srcdir}/mysql-ld.so.conf" "${pkgdir}/etc/ld.so.conf.d/${pkgname}.conf" # provided by libmysqlclient rm "${pkgdir}/usr/bin/mysql_config" - rm "${pkgdir}"/usr/lib/libmysql* + rm "${pkgdir}/usr/lib/libmysqlclient.so" + rm "${pkgdir}/usr/lib/libmysqlclient.so.21" + rm "${pkgdir}/usr/lib/libmysqlclient.so.21.0.13" + rm "${pkgdir}/usr/lib/libmysqlservices.a" rm "${pkgdir}/usr/lib/mysql/plugin/authentication_ldap_sasl_client.so" rm -r "${pkgdir}/usr/include/" rm "${pkgdir}/usr/share/man/man1/mysql_config.1" @@ -163,5 +172,14 @@ package_mysql(){ # not needed rm -r "${pkgdir}/usr/mysql-test" + rmdir "${pkgdir}/usr/run" + rmdir "${pkgdir}/usr/data" + + # Move somewhere else + mv "${pkgdir}/usr/LICENSE.router" "${pkgdir}/usr/share/mysql/docs" + mv "${pkgdir}/usr/README.router" "${pkgdir}/usr/share/mysql/docs" + + # Fix permissions + chmod 755 "${pkgdir}/usr" } |