summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaroslav Lichtblau2014-12-03 12:02:07 +0100
committerJaroslav Lichtblau2014-12-03 12:02:07 +0100
commit790c3df607dda7cde4e85859f6e4bc934340eb70 (patch)
treeb43096e9de304fde2ae6e278550e4c2fc0a68d5d
parent41da95f6e94df15b62db7e3fcfcce6b481e57a38 (diff)
downloadaur-790c3df607dda7cde4e85859f6e4bc934340eb70.tar.gz
transolution-0_4b8-1
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD44
2 files changed, 24 insertions, 24 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 17a7d5db1a3..f8f2526ea3d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -12,9 +12,9 @@ pkgbase = transolution
depends = hicolor-icon-theme
depends = xdg-utils
optdepends = 4suite
- source = transolution.zip::http://bitbucket.org/fredrik_corneliusson/transolution/get/d91da181993c.zip
+ source = transolution.tar.bz2::http://bitbucket.org/fredrik_corneliusson/transolution/get/d91da181993c.bz2
source = transolution.desktop
- sha256sums = f8bb8a45d79212d649d619991eb5e3800142a79f68e73e3a20dafa251d905d11
+ sha256sums = f9ab8dbedde7ba62af4aae56502027f1bb0af0c00c5d93b61d34a10d9a3330b3
sha256sums = 672bf984c3d12b3bf967d3980ea591c22c710f4a5bb80ffe33753f9d904238d5
pkgname = transolution
diff --git a/PKGBUILD b/PKGBUILD
index 94eae887dca..47ff2f8b7e9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,55 +10,55 @@ license=('GPL')
depends=('python2' 'pygtk' 'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils')
optdepends=('4suite')
install=$pkgname.install
-source=($pkgname.zip::http://bitbucket.org/fredrik_corneliusson/$pkgname/get/d91da181993c.zip \
+source=($pkgname.tar.bz2::http://bitbucket.org/fredrik_corneliusson/$pkgname/get/d91da181993c.bz2
$pkgname.desktop)
-sha256sums=('f8bb8a45d79212d649d619991eb5e3800142a79f68e73e3a20dafa251d905d11'
+sha256sums=('f9ab8dbedde7ba62af4aae56502027f1bb0af0c00c5d93b61d34a10d9a3330b3'
'672bf984c3d12b3bf967d3980ea591c22c710f4a5bb80ffe33753f9d904238d5')
package() {
- cd ${srcdir}/fredrik_corneliusson-transolution-*
+ cd "${srcdir}"/fredrik_corneliusson-transolution-*
- install -d ${pkgdir}/usr/share/$pkgname \
- ${pkgdir}/usr/bin \
- ${pkgdir}/usr/share/$pkgname/filters
+ install -d "${pkgdir}"/usr/share/$pkgname \
+ "${pkgdir}"/usr/bin \
+ "${pkgdir}"/usr/share/$pkgname/filters
- cp -r * ${pkgdir}/usr/share/$pkgname
- rm ${pkgdir}/usr/share/$pkgname/*{bat,txt,ico,png}
- find ${pkgdir}/usr/share/$pkgname/$pkgname -type f -exec chmod 644 "{}" \;
- install -D -m644 readme.txt ${pkgdir}/usr/share/$pkgname/README
+ cp -r * "${pkgdir}"/usr/share/$pkgname
+ rm "${pkgdir}"/usr/share/$pkgname/*{bat,txt,ico,png}
+ find "${pkgdir}"/usr/share/$pkgname/$pkgname -type f -exec chmod 644 "{}" \;
+ install -Dm644 readme.txt "${pkgdir}"/usr/share/$pkgname/README
#links to run files
for i in *.py
- do ln -s /usr/share/$pkgname/$i ${pkgdir}/usr/bin/$i
+ do ln -s /usr/share/$pkgname/$i "${pkgdir}"/usr/bin/$i
done
#icons and .desktop file
- install -D -m644 icon_16x16.png \
- ${pkgdir}/usr/share/icons/hicolor/16x16/apps/$pkgname.png
- install -D -m644 icon_32x32.png \
- ${pkgdir}/usr/share/icons/hicolor/32x32/apps/$pkgname.png
- install -D -m644 ${srcdir}/$pkgname.desktop \
- ${pkgdir}/usr/share/applications/$pkgname.desktop
+ install -Dm644 icon_16x16.png \
+ "${pkgdir}"/usr/share/icons/hicolor/16x16/apps/$pkgname.png
+ install -Dm644 icon_32x32.png \
+ "${pkgdir}"/usr/share/icons/hicolor/32x32/apps/$pkgname.png
+ install -Dm644 "${srcdir}"/$pkgname.desktop \
+ "${pkgdir}"/usr/share/applications/$pkgname.desktop
# python2 fix
- cd ${pkgdir}/usr/share/transolution
+ cd "${pkgdir}"/usr/share/transolution
for file in $(find . -name '*.py' -print); do
sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
done
#make executable
- cd ${pkgdir}/usr/share/$pkgname/
+ cd "${pkgdir}"/usr/share/$pkgname/
for i in *.py
do chmod +x $i
done
#links to filter files for easy use
- cd ${pkgdir}/usr/share/$pkgname/$pkgname/filters/filter_settings
+ cd "${pkgdir}"/usr/share/$pkgname/$pkgname/filters/filter_settings
for i in *.ini
do ln -s /usr/share/$pkgname/$pkgname/filters/filter_settings/$i \
- ${pkgdir}/usr/share/$pkgname/filters/$i
+ "${pkgdir}"/usr/share/$pkgname/filters/$i
done
- rm ${pkgdir}/usr/{bin/win_setup.py,share/$pkgname/win_setup.py}
+ rm "${pkgdir}"/usr/{bin/win_setup.py,share/$pkgname/win_setup.py}
}