# Maintainer: Niels Martignène pkgname=ty pkgver=0.7.0 pkgrel=1 pkgdesc="GUI and command-line tools to manage Teensy devices" arch=('x86_64' 'i686') url="http://github.com/Koromix/ty" license=('custom:MPL2') depends=('teensyduino' 'libudev.so' 'qt5-base') makedepends=('imagemagick') install="ty.install" source=("https://github.com/Koromix/ty/archive/v${pkgver}.tar.gz") sha256sums=('4644b07e525b6c0b0672f107a3111910f410c77da5fd98c2a3fa0431e7cd03c2') build() { cd "ty-${pkgver}" cmake -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd "ty-${pkgver}" make install DESTDIR="${pkgdir}" rm -rf "${pkgdir}/usr/lib/udev" for size in 16 32 48 256; do mkdir -p "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps" convert -resize "${size}x${size}" tyqt/images/tyqt.png "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/tyqt.png" done install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/ty/LICENSE.txt" }