gedit: Add install scripts according to MSYSTEM variable

This commit is contained in:
Biswapriyo Nath
2021-07-27 23:33:13 +05:30
parent 41ed57cc48
commit 4f2551ec98
7 changed files with 54 additions and 10 deletions

View File

@@ -4,7 +4,7 @@ _realname=gedit
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=3.38.1
pkgrel=2
pkgrel=3
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64')
pkgdesc="A text editor for GNOME (mingw-w64)"
@@ -18,13 +18,11 @@ depends=("${MINGW_PACKAGE_PREFIX}-adwaita-icon-theme"
"${MINGW_PACKAGE_PREFIX}-gspell"
"${MINGW_PACKAGE_PREFIX}-gobject-introspection-runtime"
"${MINGW_PACKAGE_PREFIX}-tepl5")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-gobject-introspection"
makedepends=("${MINGW_PACKAGE_PREFIX}-gobject-introspection"
"${MINGW_PACKAGE_PREFIX}-gtk-doc"
"${MINGW_PACKAGE_PREFIX}-gettext"
"${MINGW_PACKAGE_PREFIX}-itstool"
"${MINGW_PACKAGE_PREFIX}-meson"
"${MINGW_PACKAGE_PREFIX}-ninja"
"${MINGW_PACKAGE_PREFIX}-pkg-config"
"${MINGW_PACKAGE_PREFIX}-python"
"${MINGW_PACKAGE_PREFIX}-vala"
@@ -32,7 +30,7 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
options=('strip' 'staticlibs')
license=("GPL")
url="https://www.gnome.org"
install=${_realname}-${CARCH}.install
install=${_realname}-${MSYSTEM}.install
source=(https://download.gnome.org/sources/${_realname}/${pkgver%.*}/${_realname}-${pkgver}.tar.xz
"0001-workaround-no-delayed-loading.patch")
sha256sums=('0053853d2cd59cad8a1662f5b4fdcfab47b4c0940063bacd6790a9948642844d'
@@ -52,17 +50,19 @@ build() {
mkdir -p build-${MINGW_CHOST} && cd build-${MINGW_CHOST}
MSYS2_ARG_CONV_EXCL="--prefix=" \
${MINGW_PREFIX}/bin/meson \
${MINGW_PREFIX}/bin/meson.exe \
--prefix=${MINGW_PREFIX} \
--wrap-mode=nodownload \
--default-library=both \
--buildtype=plain \
"../${_realname}-${pkgver}"
ninja
${MINGW_PREFIX}/bin/meson.exe compile
}
package() {
cd "${srcdir}/build-${MINGW_CHOST}"
DESTDIR="${pkgdir}" ninja install
DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/meson.exe install
install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
}

View File

@@ -1,5 +1,5 @@
post_install() {
mingw32/bin/glib-compile-schemas /mingw32/share/glib-2.0/schemas
clang32/bin/glib-compile-schemas clang32/share/glib-2.0/schemas
}
post_upgrade() {

View File

@@ -1,5 +1,5 @@
post_install() {
mingw64/bin/glib-compile-schemas /mingw64/share/glib-2.0/schemas
clang64/bin/glib-compile-schemas clang64/share/glib-2.0/schemas
}
post_upgrade() {

View File

@@ -0,0 +1,11 @@
post_install() {
clangarm64/bin/glib-compile-schemas clangarm64/share/glib-2.0/schemas
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
}

View File

@@ -0,0 +1,11 @@
post_install() {
mingw32/bin/glib-compile-schemas mingw32/share/glib-2.0/schemas
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
}

View File

@@ -0,0 +1,11 @@
post_install() {
mingw64/bin/glib-compile-schemas mingw64/share/glib-2.0/schemas
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
}

View File

@@ -0,0 +1,11 @@
post_install() {
ucrt64/bin/glib-compile-schemas ucrt64/share/glib-2.0/schemas
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
}