summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaroslav Lichtblau2014-11-29 20:47:12 +0100
committerJaroslav Lichtblau2014-11-29 20:47:12 +0100
commit1a50797d70c172dc9cb4c4caa7edcd0047e77d10 (patch)
treef824b8112be08733990b6a0e5ba58ba51d1644d4
parent9bd1d5fb3a441ea15eae2500b5af294a72637f81 (diff)
downloadaur-1a50797d70c172dc9cb4c4caa7edcd0047e77d10.tar.gz
omegat-2.6.3_11-1
-rw-r--r--PKGBUILD34
1 files changed, 17 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4b8fdf72e99..64d0b59ba4c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,31 +19,31 @@ sha256sums=('1d46864449c36dcf98915117276a4c40547a215a3a0a314e794e79bb8fb30b7e'
'ac480a8244c1a5171b7f2d5892585360067d78e3113ccb45aad6afe7ed69aec5')
package() {
- cd ${srcdir}
- install -d ${pkgdir}/usr/share/java/$pkgname \
- ${pkgdir}/usr/bin
+ cd "${srcdir}"
+ install -d "${pkgdir}"/usr/share/java/$pkgname \
+ "${pkgdir}"/usr/bin
find . -type f -exec chmod 644 "{}" \;
- mv *.txt ${srcdir}/docs
- cp -r * ${pkgdir}/usr/share/java/$pkgname
- chmod 755 ${pkgdir}/usr/share/java/$pkgname/OmegaT
+ mv *.txt "${srcdir}"/docs
+ cp -r * "${pkgdir}"/usr/share/java/$pkgname
+ chmod 755 "${pkgdir}"/usr/share/java/$pkgname/OmegaT
#.desktop file + icon
- install -D -m644 ${srcdir}/$pkgname.desktop \
- ${pkgdir}/usr/share/applications/$pkgname.desktop
- install -D -m644 ${srcdir}/icons/OmegaT_Icon.png \
- ${pkgdir}/usr/share/pixmaps/$pkgname.png
+ install -D -m644 "${srcdir}"/$pkgname.desktop \
+ "${pkgdir}"/usr/share/applications/$pkgname.desktop
+ install -D -m644 "${srcdir}"/icons/OmegaT_Icon.png \
+ "${pkgdir}"/usr/share/pixmaps/$pkgname.png
#more images
- install -m644 ${pkgdir}/usr/share/java/$pkgname/icons/*.png \
- ${pkgdir}/usr/share/java/$pkgname/images/
+ install -m644 "${pkgdir}"/usr/share/java/$pkgname/icons/*.png \
+ "${pkgdir}"/usr/share/java/$pkgname/images/
#removing obsolete files
- rm -rf ${pkgdir}/usr/share/java/$pkgname/{*.{zip,desktop},OmegaT,OmegaT.bat,icons}
+ rm -rf "${pkgdir}"/usr/share/java/$pkgname/{*.{zip,desktop},OmegaT,OmegaT.bat,icons}
#making executable file
- echo "#!/bin/sh" > ${pkgdir}/usr/bin/$pkgname
- echo "cd /usr/share/java/$pkgname/" >> ${pkgdir}/usr/bin/$pkgname
- echo "java -jar OmegaT.jar \$*" >> ${pkgdir}/usr/bin/$pkgname
- chmod 755 ${pkgdir}/usr/bin/$pkgname
+ echo "#!/bin/sh" > "${pkgdir}"/usr/bin/$pkgname
+ echo "cd /usr/share/java/$pkgname/" >> "${pkgdir}"/usr/bin/$pkgname
+ echo "java -jar OmegaT.jar \$*" >> "${pkgdir}"/usr/bin/$pkgname
+ chmod 755 "${pkgdir}"/usr/bin/$pkgname
}