diff options
author | Grey Christoforo | 2015-10-31 14:27:48 +0000 |
---|---|---|
committer | Grey Christoforo | 2015-10-31 14:27:48 +0000 |
commit | 0ea35994ea586d8aa55d9a8ca1443e1b72d01977 (patch) | |
tree | 60c095972976cd00f28d56b0ed5c612998b3546a | |
parent | 23a7843d36d5b10c2151d85d085fa73398aec230 (diff) | |
download | aur-0ea35994ea586d8aa55d9a8ca1443e1b72d01977.tar.gz |
add .desktop file
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 16 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = cura pkgdesc = A software solution for 3D printing aimed at RepRaps and the Ultimaker. pkgver = 15.06.03 - pkgrel = 2 + pkgrel = 3 url = https://ultimaker.com/en/products/cura-software install = cura.install arch = i686 @@ -2,7 +2,7 @@ pkgname=cura pkgver=15.06.03 -pkgrel=2 +pkgrel=3 pkgdesc="A software solution for 3D printing aimed at RepRaps and the Ultimaker." depends=('qt5-svg' 'python-pyserial' 'python-numpy' 'uranium' 'curaengine') makedepends=('qt5-tools') @@ -19,6 +19,16 @@ install=cura.install prepare(){ cd Cura-${pkgver} patch -Np1 -i ../site-packages-dir.patch + + cat > ${pkgname}.desktop <<END +[Desktop Entry] +Type=Application +Name=${pkgname^} +Comment=${pkgdesc} +Exec=${pkgname} +Icon=/usr/share/cura/resources/themes/cura/icons/application.svg +Terminal=false +END } build(){ @@ -30,6 +40,10 @@ build(){ package(){ cd Cura-${pkgver} make DESTDIR="${pkgdir}" install + + # install .desktop file + install -D -t ${pkgdir}/usr/share/applications ${pkgname}.desktop + # rename executable mv ${pkgdir}/usr/bin/cura_app.py ${pkgdir}/usr/bin/cura } |