ghex: Fix installing locales.
This commit is contained in:
32
mingw-w64-ghex/004-localedir-fix.patch
Normal file
32
mingw-w64-ghex/004-localedir-fix.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
--- ./po/Makefile.in.in 2012-01-18 16:37:06 +0000
|
||||
+++ ./po/Makefile.in.in 2013-05-12 17:12:40 +0000
|
||||
@@ -33,8 +33,7 @@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
libdir = @libdir@
|
||||
-DATADIRNAME = @DATADIRNAME@
|
||||
-itlocaledir = $(prefix)/$(DATADIRNAME)/locale
|
||||
+localedir = @localedir@
|
||||
subdir = po
|
||||
install_sh = @install_sh@
|
||||
# Automake >= 1.8 provides @mkdir_p@.
|
||||
@@ -108,7 +107,7 @@
|
||||
install-data-yes: all
|
||||
linguas="$(USE_LINGUAS)"; \
|
||||
for lang in $$linguas; do \
|
||||
- dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
|
||||
+ dir=$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \
|
||||
$(mkdir_p) $$dir; \
|
||||
if test -r $$lang.gmo; then \
|
||||
$(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
|
||||
@@ -142,8 +141,8 @@
|
||||
uninstall:
|
||||
linguas="$(USE_LINGUAS)"; \
|
||||
for lang in $$linguas; do \
|
||||
- rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
|
||||
- rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
|
||||
+ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
|
||||
+ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
|
||||
done
|
||||
|
||||
check: all $(GETTEXT_PACKAGE).pot
|
||||
@@ -9,27 +9,31 @@ pkgdesc="GNOME Hex editor for files (mingw-w64)"
|
||||
options=(strip staticlibs)
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-gtk3"
|
||||
"${MINGW_PACKAGE_PREFIX}-adwaita-icon-theme")
|
||||
makedepends=()
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
|
||||
"${MINGW_PACKAGE_PREFIX}-pkg-config")
|
||||
license=("GPL 2")
|
||||
url="http://www.gnome.org"
|
||||
install=ghex-${CARCH}.install
|
||||
source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver%.*}/${_realname}-$pkgver.tar.xz
|
||||
001-nohelp.patch
|
||||
002-fread.patch
|
||||
003-relocation.patch)
|
||||
003-relocation.patch
|
||||
004-localedir-fix.patch)
|
||||
sha256sums=('34b66cb5c84410c420df72f229d25aee5979e58048a246ed719b046f0c241132'
|
||||
'cd87d0040cd37a942ff8a1e3013bc96083920dc959dac0a96b543b8b706585ff'
|
||||
'8e403c1e7c3f83adc768bfe45bb1ea42ae90fc4dfb7fe9bf4544820541a3241d'
|
||||
'd512e07249a3e02f4b35af9a952109da6a6600e96b5ec3882458fdfa79a65c7f')
|
||||
'd512e07249a3e02f4b35af9a952109da6a6600e96b5ec3882458fdfa79a65c7f'
|
||||
'658ed0355d655372b8a1b1fc30a45ce4f02abbad51478132ed08d5373f9514d2')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}"/${_realname}-${pkgver}
|
||||
|
||||
patch -i ${srcdir}/001-nohelp.patch
|
||||
patch -p 0 -i ${srcdir}/002-fread.patch
|
||||
patch -p 0 -i ${srcdir}/003-relocation.patch
|
||||
patch -p0 -i ${srcdir}/001-nohelp.patch
|
||||
patch -p0 -i ${srcdir}/002-fread.patch
|
||||
patch -p0 -i ${srcdir}/003-relocation.patch
|
||||
patch -p0 -i ${srcdir}/004-localedir-fix.patch
|
||||
|
||||
autoreconf -if
|
||||
autoreconf -ifv
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
Reference in New Issue
Block a user