Add meld3 package.

This commit is contained in:
Alexpux
2014-02-24 20:48:42 +04:00
parent ed674ce256
commit df1441c204
3 changed files with 74 additions and 0 deletions

50
mingw-w64-meld3/PKGBUILD Normal file
View File

@@ -0,0 +1,50 @@
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=meld
_mingw_suff=mingw-w64-${CARCH}
pkgname="${_mingw_suff}-${_realname}3"
pkgver=3.11.0
pkgrel=1
pkgdesc="Visual diff and merge tool (mingw-w64)"
arch=('any')
url="http://meldmerge.org/"
license=("GPL" "LGPL")
options=('strip' 'staticlibs')
depends=(
"${_mingw_suff}-gtk3"
"${_mingw_suff}-libxml2"
"${_mingw_suff}-python2-gobject"
"${_mingw_suff}-gtksourceview3"
"${_mingw_suff}-hicolor-icon-theme"
)
makedepends=("${_mingw_suff}-gcc"
"${_mingw_suff}-pkg-config"
'intltool'
'itstool')
install=meld-${CARCH}.install
source=(http://ftp.gnome.org/pub/GNOME/sources/${_realname}/${pkgver%.*}/${_realname}-$pkgver.tar.xz)
md5sums=('795fb159d0842c6ff237856b98ad7642')
prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
sed -i 's/env python/env python2/' bin/meld
}
build() {
cd "${srcdir}/${_realname}-${pkgver}"
#export PYTHON=${MINGW_PREFIX}/bin/python2
${MINGW_PREFIX}/bin/python2 setup.py build
}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
mkdir -p ${pkgdir}${MINGW_PREFIX}
pushd ${pkgdir}${MINGW_PREFIX}
_pref=$(pwd -W)
popd
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
${MINGW_PREFIX}/bin/python2 setup.py install --root=${pkgdir} --prefix=${MINGW_PREFIX}
}

View File

@@ -0,0 +1,12 @@
post_install() {
mingw32/bin/gtk-update-icon-cache-3.0 -f -t mingw32/share/icons/hicolor
mingw32/bin/glib-compile-schemas.exe mingw32/share/glib-2.0/schemas
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}

View File

@@ -0,0 +1,12 @@
post_install() {
mingw64/bin/gtk-update-icon-cache-3.0 -f -t mingw64/share/icons/hicolor
mingw64/bin/glib-compile-schemas.exe mingw64/share/glib-2.0/schemas
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}