diff options
author | Niels Martignène | 2015-06-10 10:18:35 +0200 |
---|---|---|
committer | Niels Martignène | 2015-06-10 10:18:35 +0200 |
commit | b6a00a3b01a6445317255ecbcf962ffa2a94f507 (patch) | |
tree | 429916de381428d136c58927cdd41686420e37e5 | |
download | aur-b6a00a3b01a6445317255ecbcf962ffa2a94f507.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | ty.install | 12 |
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..527ade560bf9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = ty + pkgdesc = GUI and command-line tools to manage Teensy devices + pkgver = 0.6.1 + pkgrel = 1 + url = http://github.com/Koromix/ty + install = ty.install + arch = x86_64 + arch = i686 + license = custom:MPL2 + makedepends = imagemagick + depends = teensyduino + depends = libudev.so + depends = qt5-base + source = https://github.com/Koromix/ty/archive/v0.6.1.tar.gz + sha256sums = 26c161e8d12cdc9d7d1b66a2c8dd5617e75b8a1fdbf34feb9891efb9a941366c + +pkgname = ty + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..385240727da3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Niels Martignène <niels.martignene@gmail.com> + +pkgname=ty +pkgver=0.6.1 +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=('26c161e8d12cdc9d7d1b66a2c8dd5617e75b8a1fdbf34feb9891efb9a941366c') + +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}" resources/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" +} diff --git a/ty.install b/ty.install new file mode 100644 index 000000000000..de8c56bc572a --- /dev/null +++ b/ty.install @@ -0,0 +1,12 @@ +post_upgrade() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q +} + +post_install() { + post_upgrade +} + +post_remove() { + post_upgrade +} |