summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e5e31d4e4ee91befd36e7951b5631ec1bd8c1bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Marcel Robitaille <mail@marcelrobitaille.me>

pkgname=kicad-diff-git
pkgver=r386.be291c6
pkgrel=2
pkgdesc=" Scripts for performing image diffs between pcbnew layout revisions Resources"
url="https://github.com/leoheck/KiCad-Diff"
license=("MIT")
arch=("x86_64")
provides=("kicad-diff")
conflicts=("kicad-diff")
makedepends=("git" "python-pip")
depends=("patch" "dos2unix" "python" "kicad" "imagemagick" "xdotool" "perl-rename" "python-pexpect" "python-wxpython")

source=("KiCad-Diff::git+https://github.com/leoheck/KiCad-Diff.git")
sha256sums=("SKIP")

package() {
	mkdir -p "$pkgdir/opt/KiCad-Diff/"
	mkdir -p "$pkgdir/usr/bin"
	cp -r . "$pkgdir/opt/"
	for bin in "kidiff" "kicad_svg_tweaks" "plot_kicad_pcb"; do
		ln -s "../../opt/KiCad-Diff/bin/$bin" "$pkgdir/usr/bin/$bin"
	done
}

pkgver() {
	cd "KiCad-Diff"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}