# Unofficial package for K40 Whisperer # Maintainer: Nat Lasseter pkgname="k40whisperer" pkgver="0.67" pkgrel="1" pkgdesc="Control software for the stock K40 Laser controller" arch=("any") url="https://www.scorchworks.com/K40whisperer/k40whisperer.html" license=("GPL") depends=("python" "python-lxml" "python-pyusb" "python-pillow" "python-pyclipper" "tk") makedepends=("unzip" "dos2unix") _pkgfile="K40_Whisperer-${pkgver}_src" source=( "https://www.scorchworks.com/K40whisperer/${_pkgfile}.zip" "97-ctc-lasercutter.rules" "${pkgname}.install" ) sha256sums=( "dd86d9143d0e1ade040dd4876118f4c140ac57928d9f124383cc0251dd2b6bcb" "19b490100927a74a4db8c6332b8a995eb1d1dc24c31467c03e3d8ac62759b508" "5d32866a044ce3239881eacd01720b95285031a003a79056644d30e728fcee19" ) install="${pkgname}.install" build() { cd ${_pkgfile} dos2unix k40_whisperer.py chmod +x k40_whisperer.py } package() { mkdir -p ${pkgdir}/usr/lib cp -r ${_pkgfile} ${pkgdir}/usr/lib/${pkgname} mkdir -p ${pkgdir}/etc/udev/rules.d cp 97-ctc-lasercutter.rules ${pkgdir}/etc/udev/rules.d/ mkdir -p ${pkgdir}/usr/bin ln -sf /usr/lib/${pkgname}/k40_whisperer.py ${pkgdir}/usr/bin/${pkgname} }