← Back
Editing: snapcraft.yaml
name: mysql-shell base: core18 summary: MySQL Shell description: | MySQL Shell (part of MySQL Server) 8.0 MySQL query and administration shell client and framework. grade: stable # must be 'stable' to release into candidate/stable channels confinement: strict adopt-info: mysql-shell environment: LD_LIBRARY_PATH: $SNAP/lib:$SNAP/usr/lib PATH: $SNAP/bin:$PATH LC_ALL: C apps: mysqlsh: command: bin/mysqlsh plugs: - network parts: mysql-shell: plugin: dump source: https://github.com/mysql/mysql-shell source-type: git source-branch: "8.0" override-build: | last_committed_tag="$(git tag -l --sort=version:refname "8*" | tail -1)" git checkout ${last_committed_tag} # Clean out build directory until we can stop the copy in the first place rm -rf $SNAPCRAFT_PART_BUILD/* cmake ../src -DHAVE_PYTHON=1 \ -DMYSQL_BUILD_DIR=$SNAPCRAFT_PART_BUILD/../../mysql-server/build/bld \ -DMYSQL_SOURCE_DIR=$SNAPCRAFT_PART_BUILD/../../mysql-server/src make -j4 snapcraftctl build snapcraftctl set-version `echo ${last_committed_tag} | sed "s/v//g"` build-packages: - cmake - gcc - g++ - zip - libncurses5-dev - bison - pkg-config - libcurl4 - libcurl4-gnutls-dev - libpython3-dev - libssl-dev stage-packages: - libasn1-8-heimdal - libcurl3-gnutls - libgssapi3-heimdal - libhcrypto4-heimdal - libheimbase1-heimdal - libheimntlm0-heimdal - libhx509-5-heimdal - libkrb5-26-heimdal - libldap-2.4-2 - libnghttp2-14 - libpsl5 - libpython3.6 - libroken18-heimdal - librtmp1 - libsasl2-2 - libwind0-heimdal mysql-server: plugin: dump source: https://github.com/mysql/mysql-server source-branch: "8.0" source-type: git override-build: | mkdir bld cd bld cmake .. -DWITH_SSL=system -Dprotobuf_BUILD_SHARED_LIBS=OFF -DWITH_BOOST=$SNAPCRAFT_PART_BUILD/../../boost/src cmake --build . --target mysqlclient cmake --build . --target mysqlxclient boost: plugin: dump source-type: tar source: https://dl.bintray.com/boostorg/release/1.73.0/source/boost_1_73_0.tar.gz override-build: ":" # Do nothing
Save File
Cancel