Commit f9a76a4f authored by gnastyle's avatar gnastyle

imported fritzing, qucs, verilator and qelectrotech FS1509

parent 75dfe035
This diff is collapsed.
pkgname=fritzing
pkgver=0.9.3b
pkgrel=1
pkgdesc="Easy-to-use, electronic design software."
arch=('x86_64')
url="http://fritzing.org"
screenshot="http://fritzing.org/media/uploads/download_screenshot_jpg_versions/small_download_screenshot.jpg"
license=('CCPL')
depends=('desktop-file-utils' 'java-environment' 'qt5-serialport' 'qt5-svg' 'shared-mime-info' 'python2' 'libgit2')
makedepends=('boost')
source=("${pkgname}-${pkgver}::https://github.com/fritzing/fritzing-app/archive/${pkgver}.tar.gz"
"parts-${pkgver}.tar.gz::https://github.com/fritzing/fritzing-parts/archive/${pkgver}.tar.gz"
"fritzing.xml"
"0001-Squashed-commit-of-the-following.patch")
sha1sums=('05c5cbe9a50693e1b0dddfa8eed3528cb96a5c95'
'3856ddd6e3d6209d531e30b5128e46f5fa3cbc3e'
'4d7aed07244780cc667ae2398bdaaf3cf7767a89'
'a2cc9a44ff00c1f52e4e7cf03479ad97f9dc8d00')
prepare() {
mkdir -p "$srcdir"/fritzing-app-${pkgver}/parts
cp -fr "$srcdir"/fritzing-parts-${pkgver}/* "$srcdir"/fritzing-app-${pkgver}/parts
cd "$srcdir"/fritzing-app-${pkgver}
patch -p1 < "$srcdir"/0001-Squashed-commit-of-the-following.patch
}
build() {
cd ${srcdir}/fritzing-app-${pkgver}
qmake-qt5
make
}
package() {
cd ${srcdir}/fritzing-app-${pkgver}
make INSTALL_ROOT=$pkgdir install
# install partsdb clone script
install -Dm755 "${srcdir}"/fritzing-app-${pkgver}/tools/user_parts_clone.sh "${pkgdir}"/usr/bin/fritzing_clone_parts
# connect .fzz files to fritzing by default
install -Dm644 "${srcdir}/fritzing.xml" "${pkgdir}/usr/share/mime/packages/fritzing.xml"
echo "MimeType=application/x-fritzing;" >> "${pkgdir}/usr/share/applications/fritzing.desktop"
sed -i s!Icon=icons/fritzing_icon.png!Icon=fritzing! \
"${pkgdir}/usr/share/applications/fritzing.desktop"
}
<?xml version='1.0' encoding='utf-8'?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-fritzing">
<comment>Fritzing project</comment>
<comment xml:lang="de">Fritzing Projekt</comment>
<comment xml:lang="fr">Projet Fritzing</comment>
<icon name="fritzing"/>
<glob pattern="*.fzz"/>
</mime-type>
</mime-info>
pkgname=qelectrotech
pkgver=0.5
pkgrel=1
pkgdesc="An electric diagram editor"
arch=('x86_64')
url="http://qelectrotech.tuxfamily.org/"
install='qelectrotech.install'
license=('GPL2')
depends=('qt5-svg' 'desktop-file-utils' 'hicolor-icon-theme' 'shared-mime-info' 'xdg-utils')
source=("http://download.tuxfamily.org/qet/tags/20151127/${pkgname}-${pkgver}-src.tar.gz"
'install-dir.patch')
sha1sums=('66f753278b1037e5ac36f6894d02cfdfcaeedaa1'
'c70db275c75f9e6c15a1bfc7da81c4a20e32ebe8')
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}-src
patch -p1 < ${srcdir}/install-dir.patch
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}-src
qmake-qt5
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}-src
make INSTALL_ROOT=${pkgdir} install
}
diff -ruN qelectrotech-0.5-src/qelectrotech.pro src/qelectrotech-0.5-src/qelectrotech.pro
--- qelectrotech-0.5-src/qelectrotech.pro 2015-10-12 14:48:32.000000000 +0200
+++ src/qelectrotech-0.5-src/qelectrotech.pro 2015-12-04 11:49:16.197910112 +0100
@@ -5,20 +5,20 @@
# Chemins utilises pour la compilation et l'installation de QET
unix {
# Chemins UNIX
- COMPIL_PREFIX = '/usr/local/'
- INSTALL_PREFIX = '/usr/local/'
+ COMPIL_PREFIX = '/usr/'
+ INSTALL_PREFIX = '/usr/'
QET_BINARY_PATH = 'bin/'
QET_COMMON_COLLECTION_PATH = 'share/qelectrotech/elements/'
QET_COMMON_TBT_PATH = 'share/qelectrotech/titleblocks/'
QET_LANG_PATH = 'share/qelectrotech/lang/'
QET_EXAMPLES_PATH = 'share/qelectrotech/examples/'
QET_LICENSE_PATH = 'doc/qelectrotech/'
- QET_MIME_XML_PATH = '../share/mime/application/'
- QET_MIME_DESKTOP_PATH = '../share/mimelnk/application/'
- QET_MIME_PACKAGE_PATH = '../share/mime/packages/'
+ QET_MIME_XML_PATH = 'share/mime/application/'
+ QET_MIME_DESKTOP_PATH = 'share/mimelnk/application/'
+ QET_MIME_PACKAGE_PATH = 'share/mime/packages/'
QET_DESKTOP_PATH = 'share/applications/'
QET_ICONS_PATH = 'share/icons/hicolor/'
- QET_MAN_PATH = 'man/'
+ QET_MAN_PATH = 'share/man/'
QET_APPDATA_PATH = 'share/appdata'
}
win32 {
@@ -34,7 +34,7 @@
macx {
# Chemins MacOS X
COMPIL_PREFIX = './'
- INSTALL_PREFIX = '/usr/local/'
+ INSTALL_PREFIX = '/usr/'
QET_BINARY_PATH = 'bin/'
QET_COMMON_COLLECTION_PATH = '../Resources/elements/'
QET_COMMON_TBT_PATH = '../Resources/titleblocks/'
post_install() {
echo "update mime database..."
update-mime-database /usr/share/mime/ > /dev/null
echo "update desktop database..."
update-desktop-database -q
echo "update icon resource..."
xdg-icon-resource forceupdate
}
post_upgrade() {
post_install $1
}
post_remove() {
post_install $1
}
# NOTE adms from github is broken
# remember to check for updates on https://software.opensuse.org/package/adms once in a while
pkgname=qucs
pkgver=0.0.19
pkgrel=1
pkgdesc="An integrated circuit simulator with a graphical user interface"
arch=('x86_64')
url="http://qucs.sourceforge.net"
license=('GPL')
depends=('gcc-libs' 'qt')
makedepends=('git' 'autoconf' 'automake' 'flex' 'bison' 'cmake' 'gperf')
optdepends=('freehdl: to permit digital circuit simulation'
'perl')
provides=('adms')
conflicts=('adms' 'adms-git')
source=("https://github.com/Qucs/qucs/archive/qucs-$pkgver.tar.gz"
"http://download.opensuse.org/repositories/openSUSE:/Leap:/42.2/standard/src/adms-2.3.4-4.3.src.rpm")
sha1sums=('28562fc5877e8c803fefa7be1d1ec578e4e62818'
'c8302d98903254c2d0c91a06830aecd72e1af582')
prepare() {
mkdir -p {build,fake_install}
tar -xf adms-2.3.4.tar.gz
}
build() {
# now adms must be build outsite qucs source tree
cd adms-2.3.4
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RELEASE \
-DUSE_MAINTAINER_MODE=0
make DESTDIR="$srcdir/fake_install" install
cd $srcdir/build
cmake ../$pkgname-$pkgname-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RELEASE \
-DUSE_MAINTAINER_MODE=0 \
-DADMSXML_DIR=$srcdir/fake_install/usr/bin
make
}
package() {
cd $srcdir/build/$pkgname
make DESTDIR="$pkgdir" install
cd $srcdir/build/$pkgname-core
make DESTDIR="$pkgdir" install
# install adms executables
cd $srcdir/adms-2.3.4
make DESTDIR="$pkgdir" install
}
pkgname=verilator
pkgver=3.900
pkgrel=1
pkgdesc='The fastest free Verilog HDL simulator'
url=http://www.veripool.org/projects/verilator/wiki/Intro
arch=('any')
license=('LGPL')
depends=('gcc-libs')
makedepends=('gcc')
source=("http://www.veripool.org/ftp/${pkgname}-${pkgver}.tgz")
sha1sums=('fa84518ea5347b5f0b84c53b394b10bc0af10cb9')
build() {
cd "verilator-${pkgver}"
./configure --prefix=/usr
make
}
package() {
cd "verilator-${pkgver}"
make install DESTDIR=$pkgdir
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment