Initial PKGBUILD status as of 28.11.2014

This commit is contained in:
Jaroslav Lichtblau 2014-11-28 20:17:14 +01:00
commit f39dbc3471
4 changed files with 68 additions and 0 deletions

18
.SRCINFO Normal file
View file

@ -0,0 +1,18 @@
pkgbase = bitext2tmx
pkgdesc = Generate a TMX translation memory for use in computer-assisted translation.
pkgver = 1.0M0
pkgrel = 4
url = http://sourceforge.net/projects/bitext2tmx
install = bitext2tmx.install
arch = i686
arch = x86_64
license = GPL
depends = java-runtime
depends = desktop-file-utils
source = http://downloads.sourceforge.net/sourceforge/bitext2tmx/bitext2tmx-1.0M0-080229.7z
source = bitext2tmx.desktop
sha256sums = a1dba2de5fa5a3477fdc591d298f50e1c2494197830c7ab2cf5a4681487837d5
sha256sums = 280b35dbf4002f76c963bb2cdb979efba0f7bbf43e6d4d311ec5846ebecfa289
pkgname = bitext2tmx

36
PKGBUILD Normal file
View file

@ -0,0 +1,36 @@
# Contributor: Dragonlord <dragonlord@aur.archlinux.org>
pkgname=bitext2tmx
pkgver=1.0M0
pkgrel=4
pkgdesc="Generate a TMX translation memory for use in computer-assisted translation."
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/bitext2tmx"
license=('GPL')
depends=('java-runtime' 'desktop-file-utils')
install=$pkgname.install
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver-080229.7z \
$pkgname.desktop)
sha256sums=('a1dba2de5fa5a3477fdc591d298f50e1c2494197830c7ab2cf5a4681487837d5'
'280b35dbf4002f76c963bb2cdb979efba0f7bbf43e6d4d311ec5846ebecfa289')
package() {
cd "${srcdir}/$pkgname-$pkgver-080229"
install -d "${pkgdir}/usr/share/java/$pkgname" "${pkgdir}/usr/bin"
rm $pkgname.bat
cp -r ${srcdir}/$pkgname-$pkgver-080229/* "${pkgdir}/usr/share/java/$pkgname"
find ${pkgdir}/usr/share/java/$pkgname -type f -exec chmod 644 "{}" \;
# executable file
echo "#!/bin/bash" > "${pkgdir}/usr/bin/$pkgname.sh"
echo "cd /usr/share/java/$pkgname/" >> "${pkgdir}/usr/bin/$pkgname.sh"
echo "java -jar $pkgname-$pkgver-080229.jar \$*" >> "${pkgdir}/usr/bin/$pkgname.sh"
chmod 755 "${pkgdir}/usr/bin/$pkgname.sh"
# .desktop file + icon
install -D -m644 "${srcdir}/$pkgname.desktop" \
"${pkgdir}/usr/share/applications/$pkgname.desktop"
install -D -m644 ${srcdir}/$pkgname-$pkgver-080229/doc/resources/b2t.png \
"${pkgdir}/usr/share/pixmaps/$pkgname.png"
}

10
bitext2tmx.desktop Normal file
View file

@ -0,0 +1,10 @@
[Desktop Entry]
Name=Bitext2tmx
GenericName=bitext2tmx
Exec=bitext2tmx.sh
Type=Application
Comment=Bitext aligner/converter to TMX
Comment[cs]=Převaděč bitextu do TMX
Terminal=false
Categories=Development;Translation;Java;
Icon=bitext2tmx

4
bitext2tmx.install Normal file
View file

@ -0,0 +1,4 @@
post_install() {
echo "Updating desktop and mime database ..."
update-desktop-database -q
}