author | Christian Hesse
<eworm@archlinux.org> 2024-05-15 17:22:40 UTC |
committer | Christian Hesse
<eworm@archlinux.org> 2024-05-15 17:22:40 UTC |
parent | d5af0c483a373c7b56bd8b501849ad30df1381da |
.SRCINFO | +14 | -3 |
PKGBUILD | +31 | -15 |
diff --git a/.SRCINFO b/.SRCINFO index 3765cf5..a866671 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -5,6 +5,7 @@ pkgbase = mariadb url = https://mariadb.org/ arch = x86_64 license = GPL + makedepends = git makedepends = boost makedepends = bzip2 makedepends = cmake @@ -23,11 +24,21 @@ pkgbase = mariadb makedepends = zlib makedepends = zstd makedepends = xz - source = https://rsync.osuosl.org/pub/mariadb/mariadb-11.3.2/source/mariadb-11.3.2.tar.gz - source = https://rsync.osuosl.org/pub/mariadb/mariadb-11.3.2/source/mariadb-11.3.2.tar.gz.asc + source = mariadb::git+https://github.com/MariaDB/server.git#tag=mariadb-11.3.2?signed + source = git+https://github.com/MariaDB/mariadb-connector-c.git + source = git+https://github.com/facebook/rocksdb.git + source = git+https://github.com/codership/wsrep-lib.git + source = git+https://github.com/wolfSSL/wolfssl.git + source = git+https://github.com/mariadb-corporation/libmarias3.git + source = git+https://github.com/mariadb-corporation/mariadb-columnstore-engine.git source = 0001-arch-specific.patch validpgpkeys = 177F4010FE56CA3336300305F1656F24C74CD1D8 - sha256sums = 5570778f0a2c27af726c751cda1a943f3f8de96d11d107791be5b44a0ce3fb5c + sha256sums = a7ee96e4f90bf5d9f4185f36dae506980242b09578578568ed5ac4334dc05287 + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP sha256sums = SKIP sha256sums = 3289efb3452d199aec872115f35da3f1d6fd4ce774615076690e9bc8afae1460 diff --git a/PKGBUILD b/PKGBUILD index a100db0..be11638 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -8,21 +8,38 @@ pkgrel=1 arch=('x86_64') license=('GPL') url='https://mariadb.org/' -makedepends=('boost' 'bzip2' 'cmake' 'cracklib' 'curl' 'jemalloc' 'judy' 'krb5' 'liburing' +makedepends=('git' 'boost' 'bzip2' 'cmake' 'cracklib' 'curl' 'jemalloc' 'judy' 'krb5' 'liburing' 'libxcrypt' 'libxml2' 'lz4' 'openssl' 'pcre2' 'systemd' 'zlib' 'zstd' 'xz') validpgpkeys=('177F4010FE56CA3336300305F1656F24C74CD1D8') # MariaDB Signing Key <signing-key@mariadb.org> -# The default links with mirror redirection fail for signatures, specific -# mirrors may be out of date every now and then. Let's use the upstream -# rsync source via https and hope it does not hurt them too much. -# https://mariadb.com/kb/en/library/mirror-sites-for-mariadb/ -source=("https://rsync.osuosl.org/pub/mariadb/mariadb-${pkgver}/source/mariadb-${pkgver}.tar.gz"{,.asc} +source=("mariadb::git+https://github.com/MariaDB/server.git#tag=mariadb-${pkgver}?signed" + 'git+https://github.com/MariaDB/mariadb-connector-c.git' + 'git+https://github.com/facebook/rocksdb.git' + 'git+https://github.com/codership/wsrep-lib.git' + 'git+https://github.com/wolfSSL/wolfssl.git' + 'git+https://github.com/mariadb-corporation/libmarias3.git' + 'git+https://github.com/mariadb-corporation/mariadb-columnstore-engine.git' '0001-arch-specific.patch') -sha256sums=('5570778f0a2c27af726c751cda1a943f3f8de96d11d107791be5b44a0ce3fb5c' +sha256sums=('a7ee96e4f90bf5d9f4185f36dae506980242b09578578568ed5ac4334dc05287' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' 'SKIP' '3289efb3452d199aec872115f35da3f1d6fd4ce774615076690e9bc8afae1460') prepare() { - cd $pkgbase-$pkgver/ + cd mariadb/ + + # setup git submodules + git config --file=.gitmodules submodule.libmariadb.url ../mariadb-connector-c/ + git config --file=.gitmodules submodule.storage/rocksdb/rocksdb.url ../rocksdb/ + git config --file=.gitmodules submodule.wsrep-lib.url ../wsrep-lib/ + git config --file=.gitmodules submodule.extra/wolfssl/wolfssl.url ../wolfssl/ + git config --file=.gitmodules submodule.storage/maria/libmarias3.url ../libmarias3/ + git config --file=.gitmodules submodule.storage/columnstore/columnstore.url ../mariadb-columnstore-engine/ + git submodule init + git -c protocol.file.allow=always submodule update # Arch Linux specific patches: # * enable PrivateTmp for a little bit more security @@ -94,7 +111,7 @@ build() { mkdir build cd build - cmake ../"$pkgbase-$pkgver" "${_cmake_options[@]}" + cmake ../mariadb/ "${_cmake_options[@]}" make } @@ -125,16 +142,15 @@ package_mariadb-libs() { # remove man pages rm -r "${pkgdir}"/usr/share/man - + ln -s mariadb_config "$pkgdir"/usr/bin/mariadb-config ln -s mariadb_config "$pkgdir"/usr/bin/mysql_config - install -D -m0644 "$srcdir"/"$pkgbase-$pkgver"/man/mariadb_config.1 "$pkgdir"/usr/share/man/man1/mariadb_config.1 + install -D -m0644 "$srcdir"/mariadb/man/mariadb_config.1 "$pkgdir"/usr/share/man/man1/mariadb_config.1 ln -s mariadb_config.1 "$pkgdir"/usr/share/man/man1/mariadb-config.1 ln -s mariadb_config.1 "$pkgdir"/usr/share/man/man1/mysql_config.1 install -D -m0644 support-files/mariadb.pc "$pkgdir"/usr/share/pkgconfig/mariadb.pc - install -D -m0644 "$srcdir"/"$pkgbase-$pkgver"/support-files/mysql.m4 "$pkgdir"/usr/share/aclocal/mysql.m4 - + install -D -m0644 "$srcdir"/mariadb/support-files/mysql.m4 "$pkgdir"/usr/share/aclocal/mysql.m4 } package_mariadb-clients() { @@ -144,13 +160,13 @@ package_mariadb-clients() { provides=("mysql-clients=${pkgver}") make -C build/client DESTDIR="${pkgdir}" install - + # install man pages make -C build/man DESTDIR="${srcdir}"/client-man install install -d -m0755 "${pkgdir}"/usr/share/man/man1/ for man in $(find "${pkgdir}"/usr/bin/ ! -type d); do install -D -m0644 -t "${pkgdir}"/usr/share/man/man1/ "${srcdir}"/client-man/usr/share/man/man1/"$(basename "${man}")".1 - done + done } package_mariadb() {