summaryrefslogtreecommitdiff
path: root/community/qucs/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/qucs/PKGBUILD')
-rw-r--r--community/qucs/PKGBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/community/qucs/PKGBUILD b/community/qucs/PKGBUILD
index 1ff7d7cb1..d43c09d04 100644
--- a/community/qucs/PKGBUILD
+++ b/community/qucs/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 94064 2013-07-13 14:17:21Z spupykin $
+# $Id: PKGBUILD 105286 2014-02-04 16:31:06Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Víctor Martínez Romanos <vmromanos@gmail.com>
pkgname=qucs
pkgver=0.0.17
-pkgrel=1
+pkgrel=2
pkgdesc="An integrated circuit simulator with a graphical user interface"
arch=('i686' 'x86_64' 'mips64el')
url="http://qucs.sourceforge.net"
@@ -17,6 +17,11 @@ optdepends=('freehdl: to permit digital circuit simulation'
source=("http://downloads.sourceforge.net/project/qucs/qucs/$pkgver/qucs-$pkgver.tar.gz")
md5sums=('4b93ffcc2ef3dbbd6fa53a5743721532')
+prepare() {
+ cd $srcdir/$pkgname-${pkgver/s/.}
+ sed -i 's|Icon=.*|Icon=/usr/share/qucs/bitmaps/big.qucs.xpm|' debian/qucs.desktop
+}
+
build() {
cd $srcdir/$pkgname-${pkgver/s/.}
./configure --prefix=/usr
@@ -26,4 +31,6 @@ build() {
package() {
cd $srcdir/$pkgname-${pkgver/s/.}
make DESTDIR=$pkgdir install
+
+ install -Dm0644 debian/qucs.desktop $pkgdir/usr/share/applications/qucs.desktop
}