diff options
author | Félix Piédallu | 2021-05-11 11:45:08 +0200 |
---|---|---|
committer | Félix Piédallu | 2021-05-11 11:45:08 +0200 |
commit | ea964352d7121d2a17b66bbc17a7ed0855a6a42a (patch) | |
tree | 61e480888ec07f33d78c05c496ac8523060ec885 /PKGBUILD | |
parent | de3a1135f46462fb08a93f36337a1e199a44db50 (diff) | |
download | aur-ea964352d7121d2a17b66bbc17a7ed0855a6a42a.tar.gz |
Rework package, use perl dependencies
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 74 |
1 files changed, 31 insertions, 43 deletions
@@ -1,58 +1,46 @@ +#shellcheck shell=bash # Maintainer: Salamandar <felix@piedallu.me> _pkgname=altium2kicad pkgname=${_pkgname}-git -pkgver=r219.f7e739f -pkgrel=4 +pkgver=r238.f9eb66d +pkgrel=1 pkgdesc="Altium to KiCad converter for PCB and schematics" -arch=('i686' 'x86_64' 'armv6' 'armv6h' 'armv7h') +arch=( 'any' ) url="https://github.com/thesourcerer8/altium2kicad" -license=('AGPL3') -depends=( - 'perl' -) -source=( - "git+${url}" -) -sha256sums=( - 'SKIP' -) - -conflicts=( 'perl-math-bezier' ) +license=( 'AGPL3' ) +depends=( 'perl' 'perl-math-bezier' 'perl-math-geometry-planar' ) +source=( "git+${url}" ) +sha256sums=( 'SKIP' ) pkgver() { - cd "${_pkgname}" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { - : + : } package () { - cd "${_pkgname}" - - # Install license file - install -Dm644 -t "${pkgdir}/usr/share/licenses/${_pkgname}" \ - "LICENSE" - - # Install readmes - install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" \ - "README.md" "Tests.md" - - # # Install Freecad macro - # install -Dm644 "step2wrl.FCMacro" \ - # "${pkgdir}/usr/share/" - - # Install Perl libraries - find "Math" -type f -exec \ - install -Dm644 "{}" "${pkgdir}/usr/lib/perl5/5.30/vendor_perl/{}" \; - - # Install executables - install -d "${pkgdir}/usr/bin" - for exe in "unpack" "convertpcb" "convertschema" ; do - install -Dm755 -t "${pkgdir}/usr/lib/altium2kicad" "${exe}.pl" - ln -s "/usr/lib/altium2kicad/${exe}.pl" "${pkgdir}/usr/bin/altium2kicad_${exe}" - done - + cd "$_pkgname" + + # Install license file + install -Dm644 -t "$pkgdir/usr/share/licenses/$_pkgname" \ + "LICENSE" + + # Install readmes + install -Dm644 -t "$pkgdir/usr/share/doc/$_pkgname" \ + "README.md" "Tests.md" + + # # Install Freecad macro + # install -Dm644 "step2wrl.FCMacro" \ + # "$pkgdir/usr/share/" + + # Install executables + install -d "$pkgdir/usr/bin" + for exe in "unpack" "convertpcb" "convertschema" ; do + install -Dm755 -t "$pkgdir/usr/lib/altium2kicad" "${exe}.pl" + ln -s "/usr/lib/altium2kicad/${exe}.pl" "$pkgdir/usr/bin/altium2kicad_${exe}" + done } |