summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD73
1 files changed, 73 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f1e6b33d68f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,73 @@
+# Maintainer: Roman Sommer <roman.sommer@fau.de>
+pkgname=veroroute
+_pkgvermajor=1
+_pkgverminor=51
+pkgver=$_pkgvermajor.$_pkgverminor
+pkgrel=1
+epoch=
+pkgdesc="Qt based Veroboard/Perfboard/PCB layout and routing application"
+arch=('i686' 'x86_64')
+url="https://sourceforge.net/projects/veroroute"
+license=('GPLv3+')
+groups=()
+depends=(qt5-base geda-gaf)
+makedepends=()
+checkdepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+_sourcearchive="VeroRoute_V${_pkgvermajor}${_pkgverminor}_Src.zip"
+source=("https://downloads.sourceforge.net/project/$pkgname/$_sourcearchive"
+ "veroroute.desktop.in"
+ "veroroute-clib.scm"
+ "0001-Shape.h-add-missing-header.patch")
+sha256sums=('773611e8fe7bb7ea2fc4bbd83a83b1308fdb19ef1ac8cbe752c286cb91bf6edb'
+ 'bbf5a01f8f05909f52cee36ac0184c039aca313d078bcced47dcdcfcaa26bba9'
+ 'a722805c46998bff7709357babc2e609fbc4b0021b33c59aefa4f7fa0567aeeb'
+ 'b9b397b0fd2ac437d84b410e380b8337a1c2432aef61721b93be3062bdb70cda')
+noextract=()
+
+prepare() {
+ echo "$srcdir"
+ cd "$srcdir/VeroRoute"
+
+ patch -p1 -i "../0001-Shape.h-add-missing-header.patch"
+ sed -e "s|__VERSION__|${pkgver}|g" -e "s|__COMMENT__|${pkgdesc}|g" $srcdir/veroroute.desktop.in > $srcdir/veroroute.desktop
+}
+
+build() {
+ cd "$srcdir/VeroRoute"
+ mkdir -p build
+ cd build
+ qmake ../Src
+ make
+}
+
+check() {
+ cd "$srcdir/VeroRoute/build"
+ make -k check
+}
+
+package() {
+ cd "$srcdir/VeroRoute"
+ install -Dm755 VeroRoute "$pkgdir/usr/bin/veroroute"
+ mkdir -p "$pkgdir/usr/share/pixmaps/"
+ install -Dm644 VeroRoute.png "$pkgdir/usr/share/pixmaps/"
+ mkdir -p "$pkgdir/usr/share/applications/"
+ install -Dm644 "$srcdir/veroroute.desktop" "$pkgdir/usr/share/applications/"
+ mkdir -p "$pkgdir/usr/share/veroroute/Tutorials"
+ find Tutorials -maxdepth 1 -type f -exec install -Dm644 "{}" "$pkgdir/usr/share/veroroute/Tutorials" \;
+ mkdir -p "$pkgdir/usr/share/veroroute/Templates"
+ find Templates -maxdepth 1 -type f -exec install -Dm644 "{}" "$pkgdir/usr/share/veroroute/Templates" \;
+ mkdir -p "$pkgdir/usr/share/gEDA/sym"
+ (cd Libraries/gEDA; find . -mindepth 2 -type f -exec install -Dm644 "{}" "$pkgdir/usr/share/gEDA/sym/{}" \;)
+ mkdir -p "$pkgdir/usr/share/gEDA/gafrc.d/"
+ install -Dm644 "$srcdir/veroroute-clib.scm" "$pkgdir/usr/share/gEDA/gafrc.d/"
+}
+
+# vim:set ts=2 sw=2 et: