extra/mariadb to 10.9.3-3

This commit is contained in:
Kevin Mihelich 2022-11-05 02:28:39 +00:00
parent 32cbb6a0ea
commit d1e246e39d

View file

@ -8,7 +8,7 @@ pkgbase=mariadb
pkgname=('mariadb-libs' 'mariadb-clients' 'mariadb' 'mytop') pkgname=('mariadb-libs' 'mariadb-clients' 'mariadb' 'mytop')
pkgdesc='Fast SQL database server, derived from MySQL' pkgdesc='Fast SQL database server, derived from MySQL'
pkgver=10.9.3 pkgver=10.9.3
pkgrel=1 pkgrel=3
arch=('x86_64') arch=('x86_64')
license=('GPL') license=('GPL')
url='https://mariadb.org/' url='https://mariadb.org/'
@ -120,20 +120,21 @@ package_mariadb-libs() {
make -C "$dir" DESTDIR="$pkgdir" install make -C "$dir" DESTDIR="$pkgdir" install
done done
# remove static libraries
rm "${pkgdir}"/usr/lib/*.a
# 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/mariadb-config
ln -s mariadb_config "$pkgdir"/usr/bin/mysql_config ln -s mariadb_config "$pkgdir"/usr/bin/mysql_config
install -D -m0644 "$srcdir"/"$pkgbase-$pkgver"/man/mysql_config.1 "$pkgdir"/usr/share/man/man1/mysql_config.1 install -D -m0644 "$srcdir"/"$pkgbase-$pkgver"/man/mysql_config.1 "$pkgdir"/usr/share/man/man1/mysql_config.1
ln -s mysql_config.1 "$pkgdir"/usr/share/man/man1/mariadb_config.1
ln -s mysql_config.1 "$pkgdir"/usr/share/man/man1/mariadb-config.1
install -D -m0644 support-files/mariadb.pc "$pkgdir"/usr/share/pkgconfig/mariadb.pc 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"/"$pkgbase-$pkgver"/support-files/mysql.m4 "$pkgdir"/usr/share/aclocal/mysql.m4
cd "$pkgdir"
# remove static libraries
rm usr/lib/*.a
# remove man pages
rm -r usr/share/man
} }
package_mariadb-clients() { package_mariadb-clients() {
@ -142,14 +143,14 @@ package_mariadb-clients() {
conflicts=('mysql-clients') conflicts=('mysql-clients')
provides=("mysql-clients=$pkgver") provides=("mysql-clients=$pkgver")
cd build make -C build/client DESTDIR="${pkgdir}" install
make -C client DESTDIR="$pkgdir" install
# install man pages # install man pages
for man in mysql mysql_plugin mysql_upgrade mysqladmin mysqlbinlog mysqlcheck mysqldump mysqlimport mysqlshow mysqlslap mysqltest; do make -C build/man DESTDIR="${srcdir}"/client-man install
install -D -m0644 "$srcdir"/"$pkgbase-$pkgver"/man/"$man.1" "$pkgdir"/usr/share/man/man1/"$man.1" install -d -m0755 "${pkgdir}"/usr/share/man/man1/
done 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
} }
package_mariadb() { package_mariadb() {
@ -208,16 +209,16 @@ package_mariadb() {
# provided by mariadb-libs # provided by mariadb-libs
rm usr/bin/{mariadb{_,-},mysql_}config rm usr/bin/{mariadb{_,-},mysql_}config
rm -r usr/include/ rm -r usr/include/
rm usr/share/man/man1/mysql_config.1 rm usr/share/man/man1/{mariadb,mysql}_config.1
rm -r usr/share/aclocal rm -r usr/share/aclocal
rm usr/lib/lib* rm usr/lib/lib*
rm -r usr/lib/pkgconfig rm -r usr/lib/pkgconfig
rm usr/lib/mysql/plugin/{auth_gssapi_client,caching_sha2_password,client_ed25519,dialog,mysql_clear_password,sha256_password,zstd}.so rm usr/lib/mysql/plugin/{auth_gssapi_client,caching_sha2_password,client_ed25519,dialog,mysql_clear_password,sha256_password,zstd}.so
# provided by mariadb-clients # provided by mariadb-clients
rm usr/bin/mysql{,_plugin,_upgrade,admin,binlog,check,dump,import,show,slap,test} for bin in $(find "${pkgdir}"/../mariadb-clients/usr/bin/ ! -type d); do
rm usr/bin/mariadb{,-{admin,binlog,check,conv,dump,import,plugin,show,slap,test,upgrade}} rm "${pkgdir}"/usr/bin/"$(basename "${bin}")" "${pkgdir}"/usr/share/man/man1/"$(basename "${bin}")".1
rm usr/share/man/man1/mysql{,_plugin,_upgrade,admin,binlog,check,dump,import,show,slap,test}.1 done
# provided by mytop # provided by mytop
rm usr/bin/mytop rm usr/bin/mytop