summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiels Martignène2015-06-10 10:47:16 +0200
committerNiels Martignène2015-06-10 10:47:16 +0200
commit32296cc3876998b147a9aad9948c8a54765eec21 (patch)
tree4a4c894a16483601aa7740892b90daf1fb49f137
downloadaur-32296cc3876998b147a9aad9948c8a54765eec21.tar.gz
Initial import
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD36
-rw-r--r--convertall.desktop14
-rw-r--r--convertall.install12
4 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3d14e021c3b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = convertall
+ pkgdesc = Unit conversion program (Qt)
+ pkgver = 0.6.0
+ pkgrel = 1
+ url = http://convertall.bellz.org/
+ install = convertall.install
+ arch = any
+ license = GPL
+ depends = python-pyqt4
+ depends = desktop-file-utils
+ source = http://download.sourceforge.net/project/convertall/0.6.0/convertall-0.6.0.tar.gz
+ source = convertall.desktop
+ sha256sums = 871ce44bd59566a95b88fdb9c0ce196389a72c56192387a62b308ead358f87c0
+ sha256sums = 4f7ac9402580e866b360e07e07bfe1d05311f64f996dcf647094db6de9455212
+
+pkgname = convertall
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..be8d5d4639b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Niels Martignène <niels.martignene@gmail.com>
+# Contributor: moostik <mooostik_at_gmail.com>
+# Contributor: pressh <pressh funnysymbol gmail dot com>
+
+pkgname=convertall
+pkgver=0.6.0
+pkgrel=1
+pkgdesc="Unit conversion program (Qt)"
+arch=('any')
+url="http://convertall.bellz.org/"
+license=('GPL')
+depends=('python-pyqt4' 'desktop-file-utils')
+install="convertall.install"
+source=("http://download.sourceforge.net/project/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
+ 'convertall.desktop')
+sha256sums=('871ce44bd59566a95b88fdb9c0ce196389a72c56192387a62b308ead358f87c0'
+ '4f7ac9402580e866b360e07e07bfe1d05311f64f996dcf647094db6de9455212')
+
+package() {
+ cd ConvertAll
+
+ python install.py -b "${pkgdir}" -p /usr -i /usr/share/pixmaps/convertall
+ rm "${pkgdir}/usr/share/doc/${pkgname}"/{INSTALL,LICENSE}
+
+ install -Dm644 icons/convertall.svg \
+ "${pkgdir}/usr/share/icons/hicolor/scalable/apps/convertall.svg"
+ install -Dm644 icons/convertall_lg.png \
+ "${pkgdir}/usr/share/icons/hicolor/64x64/apps/convertall.png"
+ install -Dm644 icons/convertall_med.png \
+ "${pkgdir}/usr/share/icons/hicolor/32x32/apps/convertall.png"
+ install -Dm644 icons/convertall_sm.png \
+ "${pkgdir}/usr/share/icons/hicolor/16x16/apps/convertall.png"
+
+ install -Dm644 "${srcdir}/convertall.desktop" \
+ "${pkgdir}/usr/share/applications/convertall.desktop"
+}
diff --git a/convertall.desktop b/convertall.desktop
new file mode 100644
index 00000000000..22fd5461b65
--- /dev/null
+++ b/convertall.desktop
@@ -0,0 +1,14 @@
+#!/usr/bin/env xdg-open
+[Desktop Entry]
+Version=1.0
+Name=ConvertAll
+GenericName=Unit Converter
+GenericName[fr]=Coonvertisseur d'unités
+Comment=Convert between many different units
+Comment[fr]=Convertissez entre différentes unités
+Icon=convertall
+Exec=convertall
+Terminal=false
+Type=Application
+Categories=Education;Science;KDE;Qt;
+
diff --git a/convertall.install b/convertall.install
new file mode 100644
index 00000000000..5c501dc4991
--- /dev/null
+++ b/convertall.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}