Created
September 23, 2012 03:36
-
-
Save hattorix/3768753 to your computer and use it in GitHub Desktop.
kdeutils-ark 日本語対応パッチ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post_install() { | |
update-desktop-database -q | |
} | |
post_update() { | |
post_install | |
} | |
post_remove() { | |
post_install | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=kdeutils-ark-ja | |
pkgver=4.9.1 | |
pkgrel=1 | |
pkgdesc='Archiving Tool' | |
url='http://kde.org/applications/utilities/ark/' | |
arch=('i686' 'x86_64') | |
license=('GPL' 'LGPL' 'FDL') | |
groups=('kde' 'kdeutils') | |
depends=('kdebase-runtime' 'kdebase-lib' 'libarchive' 'qjson') | |
makedepends=('cmake' 'automoc4') | |
optdepends=('p7zip' 'zip' 'unzip-iconv' 'unrar') | |
provides=('kdeutils-ark') | |
conflicts=('kdeutils-ark') | |
install=${pkgname}.install | |
source=("http://download.kde.org/stable/${pkgver}/src/ark-${pkgver}.tar.xz" | |
'unzip-iconv.patch') | |
sha1sums=('2f7d32b9f99913d14801b56f0c858eda128a7b91' | |
'54058ea4c2a54cb47afb021baa843c78c70fe94c') | |
build() { | |
# iconv patch | |
cd ${srcdir}/ark-${pkgver} | |
patch -Np1 -i ${srcdir}/unzip-iconv.patch | |
# make | |
cd "${srcdir}" | |
mkdir build | |
cd build | |
cmake ../ark-${pkgver} \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_INSTALL_PREFIX=/usr | |
make | |
} | |
package() { | |
cd $srcdir/build | |
make DESTDIR=$pkgdir install | |
cd $srcdir/build/doc | |
make DESTDIR=$pkgdir install | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/plugins/clizipplugin/cliplugin.cpp b/plugins/clizipplugin/cliplugin.cpp | |
index 1be2a10..5032f7f 100644 | |
--- a/plugins/clizipplugin/cliplugin.cpp | |
+++ b/plugins/clizipplugin/cliplugin.cpp | |
@@ -77,9 +77,9 @@ ParameterList CliPlugin::parameterList() const | |
p[ExtractProgram] = QStringList() << QLatin1String( "unzip" ); | |
p[DeleteProgram] = p[AddProgram] = QStringList() << QLatin1String( "zip" ); | |
- p[ListArgs] = QStringList() << QLatin1String( "-l" ) << QLatin1String( "-T" ) << QLatin1String( "$Archive" ); | |
- p[ExtractArgs] = QStringList() << QLatin1String( "$PreservePathSwitch" ) << QLatin1String( "$PasswordSwitch" ) << QLatin1String( "$Archive" ) << QLatin1String( "$Files" ); | |
- p[PreservePathSwitch] = QStringList() << QLatin1String( "" ) << QLatin1String( "-j" ); | |
+ p[ListArgs] = QStringList() << QLatin1String( "-l" ) << QLatin1String( "-Ocp932" ) << QLatin1String( "-T" ) << QLatin1String( "$Archive" ); | |
+ p[ExtractArgs] = QStringList() << QLatin1String( "-Ocp932" ) << QLatin1String( "$PreservePathSwitch" ) << QLatin1String( "$PasswordSwitch" ) << QLatin1String( "$Archive" ) << QLatin1String( "$Files" ); | |
+ p[PreservePathSwitch] = QStringList() << QLatin1String( "" ) << QLatin1String( "-Ocp932" ) << QLatin1String( "-j" ); | |
p[PasswordSwitch] = QStringList() << QLatin1String( "-P$Password" ); | |
p[DeleteArgs] = QStringList() << QLatin1String( "-d" ) << QLatin1String( "$Archive" ) << QLatin1String( "$Files" ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment