diff options
author | Adam Goldsmith | 2017-08-16 16:37:31 -0400 |
---|---|---|
committer | Adam Goldsmith | 2017-08-16 16:37:31 -0400 |
commit | 9dc8f06fcbc25014c18365cf6e0dc8c62f9e8fec (patch) | |
tree | 09a6b95dd56cb77f792b8fa2cbff0f01a9610dd4 | |
download | aur-9dc8f06fcbc25014c18365cf6e0dc8c62f9e8fec.tar.gz |
Initial Commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 47 |
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..27034cef7dbd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +# Generated by mksrcinfo v8 +# Wed Aug 16 20:36:24 UTC 2017 +pkgbase = touplite + pkgdesc = A port of the ToupTek Photonics's PC software ToupLite for Linux + pkgver = 1.0 + pkgrel = 1 + url = http://touptek.com/download/showdownload.php?lang=en&id=28 + arch = i686 + arch = x86_64 + license = unknown + depends = qt4 + source = http://touptek.com//upload/download/ToupLiteLinux.tgz + md5sums = 7532b402b30adfe613d1356478c30892 + +pkgname = touplite + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..88a26e484867 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/src/ +/pkg/ +/ToupLiteLinux.tgz +/*.pkg* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4cc340edfff3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Adam Goldsmith <contact@adamgoldsmith.name> + +pkgname=touplite +pkgver=1.0 +pkgrel=1 +pkgdesc="A port of the ToupTek Photonics's PC software ToupLite for Linux" +arch=('i686' 'x86_64') +url="http://touptek.com/download/showdownload.php?lang=en&id=28" +depends=('qt4') +license=('unknown') +source=("http://touptek.com//upload/download/ToupLiteLinux.tgz") +md5sums=('7532b402b30adfe613d1356478c30892') + +prepare() { + cd "$srcdir" + + if [ "$CARCH" == "x86_64" ] + then + chmod u+rw ToupLite-${pkgver}-x64.tgz + tar xvzf ToupLite-${pkgver}-x64.tgz + tail -n +41 ToupLite-${pkgver}-x64.run | tar xvz + else + chmod u+rw ToupLite-${pkgver}-x86.tgz + tar xvzf ToupLite-${pkgver}-x86.tgz + tail -n +41 ToupLite-${pkgver}-x86.run | tar xvz + fi + + cd ToupLite + tar xzvf res.tar.gz +} + +package() { + cd "$srcdir/ToupLite" + + install -Dm644 libtoupcam.so libtoupnam.so -t "${pkgdir}/usr/local/lib" + install -Dm755 ToupLite "${pkgdir}/usr/local/ToupLite/ToupLite" + + mkdir -p "${pkgdir}/usr/bin/ToupLite" + ln -s "${pkgdir}/usr/local/ToupLite/ToupLite" "${pkgdir}/usr/bin/ToupLite" + + install -Dm644 res/*.xml res/ToupLite.png -t "${pkgdir}/usr/local/ToupLite/res/" + install -Dm644 99-toupcam.rules -t "${pkgdir}/usr/lib/udev/rules.d/" + + install -Dm755 res/ToupLite.desktop -t "${pkgdir}/usr/share/applications" +} + +# vim:set ts=2 sw=2 et: |