gedit: Add install scripts according to MSYSTEM variable
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
@@ -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() {
|
||||
11
mingw-w64-gedit/gedit-CLANGARM64.install
Normal file
11
mingw-w64-gedit/gedit-CLANGARM64.install
Normal 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
|
||||
}
|
||||
11
mingw-w64-gedit/gedit-MINGW32.install
Normal file
11
mingw-w64-gedit/gedit-MINGW32.install
Normal 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
|
||||
}
|
||||
11
mingw-w64-gedit/gedit-MINGW64.install
Normal file
11
mingw-w64-gedit/gedit-MINGW64.install
Normal 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
|
||||
}
|
||||
11
mingw-w64-gedit/gedit-UCRT64.install
Normal file
11
mingw-w64-gedit/gedit-UCRT64.install
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user