summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD34
2 files changed, 28 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8205ab719b9..7515ef942bf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mysql51
pkgdesc = A fast SQL database server, version 5.1.x
- pkgver = 5.1.73
- pkgrel = 4
+ pkgver = 5.1.77
+ pkgrel = 1
url = https://www.mysql.com/products/community/
install = mysql51.install
arch = i686
@@ -10,6 +10,8 @@ pkgbase = mysql51
makedepends = zlib
makedepends = perl
makedepends = libtool
+ makedepends = bison27
+ makedepends = git
depends = openssl
depends = gcc-libs
optdepends = perl-dbi
@@ -27,6 +29,7 @@ pkgbase = mysql51
backup = etc/mysql/my.cnf
source = http://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.1/mysql-5.1.73.tar.gz
source = http://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.1/mysql-5.1.73.tar.gz.asc
+ source = https://github.com/mysql/mysql-server/compare/mysql-5.1.73...mysql-5.1.77.patch
source = mysqld.service
source = mysqld@.service
source = mysqld-tmpfile.conf
@@ -35,6 +38,7 @@ pkgbase = mysql51
source = skip-abi-check.patch
sha256sums = 05ebe21305408b24407d14b77607a3e5ffa3c300e03f1359d3066f301989dcb5
sha256sums = SKIP
+ sha256sums = a5f38b17d30ec1a2d6c0c135b4ca8975f8e8e1a818e2a09d66952417484f894f
sha256sums = f609540cbcedb4a16b8e9eaaf3b537e8af45127e09a7480ce411ca80026aa90c
sha256sums = c96471716d5a65bdefd88cab7ed2330353e5e07ee9d0cbfd53fbd41b536ed0cd
sha256sums = 2af318c52ae0fe5428e8a9245d1b0fc3bc5ce153842d1563329ceb1edfa83ddd
diff --git a/PKGBUILD b/PKGBUILD
index ee7a9d4a923..58dec9eaf4e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,41 +5,51 @@
# Contributor: Danny Navarro <j@dannynavarro.net>
pkgname=mysql51
-pkgver=5.1.73
-pkgrel=4
+_tarball=5.1.73
+pkgver=5.1.77
+pkgrel=1
arch=('i686' 'x86_64')
license=('GPL')
pkgdesc="A fast SQL database server, version 5.1.x"
backup=('etc/mysql/my.cnf')
url="https://www.mysql.com/products/community/"
depends=('openssl' 'gcc-libs')
-makedepends=('zlib' 'perl' 'libtool')
+makedepends=('zlib' 'perl' 'libtool' 'bison27' 'git')
optdepends=('perl-dbi' 'perl-dbd-mysql')
options=('!libtool')
conflicts=('mysql' 'mariadb' 'libmysqlclient' 'libmariadbclient' 'mysql-clients' 'mariadb-clients')
provides=('mysql' 'libmysqlclient' 'mysql-clients')
install="${pkgname}.install"
-source=("http://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.1/mysql-${pkgver}.tar.gz"{,.asc}
- 'mysqld.service'
- 'mysqld@.service'
- 'mysqld-tmpfile.conf'
- 'mysqld-post.sh'
+source=("http://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.1/mysql-${_tarball}.tar.gz"{,.asc}
+ "https://github.com/mysql/mysql-server/compare/mysql-${_tarball}...mysql-${pkgver}.patch"
+ 'mysqld.service'
+ 'mysqld@.service'
+ 'mysqld-tmpfile.conf'
+ 'mysqld-post.sh'
'my.cnf'
'skip-abi-check.patch')
sha256sums=('05ebe21305408b24407d14b77607a3e5ffa3c300e03f1359d3066f301989dcb5'
'SKIP'
+ 'a5f38b17d30ec1a2d6c0c135b4ca8975f8e8e1a818e2a09d66952417484f894f'
'f609540cbcedb4a16b8e9eaaf3b537e8af45127e09a7480ce411ca80026aa90c'
- 'c96471716d5a65bdefd88cab7ed2330353e5e07ee9d0cbfd53fbd41b536ed0cd'
+ 'c96471716d5a65bdefd88cab7ed2330353e5e07ee9d0cbfd53fbd41b536ed0cd'
'2af318c52ae0fe5428e8a9245d1b0fc3bc5ce153842d1563329ceb1edfa83ddd'
'9e98b2f942b407032f3a98914dc1d9a6a4bfe09d10b652bc040b0c213fc7a91b'
'ff0a55a4c7a5b8a3e0aca6d9d2238a126748a6c3d3cd28b6d09a12d4dc881f4c'
'6a3c4702097bd7e5575030d4c37ca7d628ff9f2d6ed499ca3f55638a3f99668e')
validpgpkeys=('A4A9406876FCBD3C456770C88C718D3B5072E1F5')
-build() {
- cd "${srcdir}/mysql-${pkgver}"
+prepare() {
+ cd "${srcdir}/mysql-${_tarball}"
+
+ # latest version from gitub
+ git apply --exclude="mysql-test/*" --verbose "${srcdir}/mysql-${_tarball}...mysql-${pkgver}.patch"
patch -Np0 -i "${srcdir}/skip-abi-check.patch"
+}
+
+build() {
+ cd "${srcdir}/mysql-${_tarball}"
# CFLAGS/CXXFLAGS as suggested upstream
CFLAGS="-fPIC ${CFLAGS} -fno-strict-aliasing -DBIG_JOINS=1 -fomit-frame-pointer" \
@@ -66,7 +76,7 @@ build() {
}
package() {
- cd "${srcdir}/mysql-${pkgver}"
+ cd "${srcdir}/mysql-${_tarball}"
make DESTDIR=${pkgdir} install