#Maintainer: R S Ananda Murthy pkgname=pcb pkgver=20110918 pkgrel=1 zenver=72 arch=i486 source=("http://downloads.sourceforge.net/project/pcb/pcb/pcb-20110918/pcb-20110918.tar.gz") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/rsamurti/$pkgname/ docs=("authors" "copying" "readme" "readme.win32" "about-nls" "readme.cvs" "news" "install") url=http://www.gpleda.org/index.html slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "pcb (A tool for preparing printed circuit boards)" "PCB is a tool for the layout of printed circuit boards. PCB can" "produce industry standard RS-274-X and Excellon NC-Drill format" "output for submission to board manufacturers." ) build() { cd $startdir/src/$pkgname-$pkgver if [ ! -x /usr/bin/wish ]; then config="env WISH=/usr/bin/true ./configure --enable-dbus" else config="./configure --enable-dbus" fi $config --prefix=/usr --disable-update-mime-database \ --disable-update-desktop-database || return 1 make || return 1 make check make prefix=$startdir/pkg/usr install || return 1 mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver cp $startdir/pkg/usr/share/doc/pcb/* $startdir/pkg/usr/doc/$pkgname-$pkgver rm -rf $startdir/pkg/usr/share/doc rm -rf $startdir/pkg/usr/share/$pkgname-$pkgver rm $startdir/pkg/usr/share/applications/pcb.desktop cat < $startdir/pkg/usr/share/applications/$pkgname.desktop [Desktop Entry] Version=1.0 Name=PCB Designer Name[ru]=Редактор PCB GenericName=PCB Design GenericName[ru]=Проект PCB Comment=Create and edit printed circuit board designs Comment[ru]=Создание и редактирование проектов печатных плат Type=Application Exec=pcb %f Icon=pcb MimeType=application/x-pcb-layout;application/x-pcb-footprint; Categories=Science EOF }