Skip to content

Commit

Permalink
gedit-plugins: Add install scripts according to MSYSTEM variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Biswa96 committed Jul 28, 2021
1 parent 4f2551e commit e6599cc
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 11 deletions.
18 changes: 9 additions & 9 deletions mingw-w64-gedit-plugins/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,24 @@ _realname=gedit-plugins
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=3.38.0
pkgrel=3
pkgrel=4
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64')
pkgdesc="Collection of plugins for the gedit Text Editor (mingw-w64)"
depends=("${MINGW_PACKAGE_PREFIX}-gedit"
"${MINGW_PACKAGE_PREFIX}-libgit2-glib"
"${MINGW_PACKAGE_PREFIX}-libpeas")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-itstool"
makedepends=("${MINGW_PACKAGE_PREFIX}-itstool"
"${MINGW_PACKAGE_PREFIX}-gettext"
"${MINGW_PACKAGE_PREFIX}-gobject-introspection"
"${MINGW_PACKAGE_PREFIX}-meson"
"${MINGW_PACKAGE_PREFIX}-ninja"
"${MINGW_PACKAGE_PREFIX}-pkg-config"
"${MINGW_PACKAGE_PREFIX}-python3"
"${MINGW_PACKAGE_PREFIX}-python"
"${MINGW_PACKAGE_PREFIX}-yelp-tools")
options=('strip' 'staticlibs')
license=("GPL")
url="https://wiki.gnome.org/Apps/Gedit/ShippedPlugins"
install=gedit-plugins-${CARCH}.install
install=gedit-plugins-${MSYSTEM}.install
source=(https://download.gnome.org/sources/${_realname}/${pkgver%.*}/${_realname}-${pkgver}.tar.xz)
sha256sums=('bda2bd5ad7ebdd535d1cc6c8700c295dec64b227c9173c0d2bae0067516259fb')

Expand All @@ -36,16 +34,18 @@ 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 \
-Dplugin_findinfiles=false \
"../${_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
}
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
11 changes: 11 additions & 0 deletions mingw-w64-gedit-plugins/gedit-plugins-CLANGARM64.install
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions mingw-w64-gedit-plugins/gedit-plugins-MINGW32.install
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions mingw-w64-gedit-plugins/gedit-plugins-MINGW64.install
Original file line number Diff line number Diff line change
@@ -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 changes: 11 additions & 0 deletions mingw-w64-gedit-plugins/gedit-plugins-UCRT64.install
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit e6599cc

Please sign in to comment.