Add meld3 package.
This commit is contained in:
50
mingw-w64-meld3/PKGBUILD
Normal file
50
mingw-w64-meld3/PKGBUILD
Normal 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}
|
||||
}
|
||||
12
mingw-w64-meld3/meld-i686.install
Normal file
12
mingw-w64-meld3/meld-i686.install
Normal 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
|
||||
}
|
||||
12
mingw-w64-meld3/meld-x86_64.install
Normal file
12
mingw-w64-meld3/meld-x86_64.install
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user