diff options
author | cyrozap | 2015-08-09 23:37:02 -0500 |
---|---|---|
committer | cyrozap | 2015-08-09 23:37:02 -0500 |
commit | 108ec26a84d24cf07f907879cbfa1bd827be0000 (patch) | |
tree | 5a4a0a8e046cade0f45a3c2e2b90d047311d89d4 | |
download | aur-108ec26a84d24cf07f907879cbfa1bd827be0000.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..44681b17e47c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = libcyusbserial + pkgdesc = Enable userspace control of Cypress USB-Serial bridge devices + pkgver = 1.0.0 + pkgrel = 1 + url = https://github.com/cyrozap/libcyusbserial + arch = i686 + arch = x86_64 + license = LGPL + depends = libusb + source = https://github.com/cyrozap/libcyusbserial/archive/v1.0.0.tar.gz + sha1sums = 4d28198e7d1777d2770edbdf7161ddde39bac276 + +pkgname = libcyusbserial + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..20b4881ef43f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Forest Crossman <cyrozap at gmail dot com> + +pkgname=libcyusbserial +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Enable userspace control of Cypress USB-Serial bridge devices" +arch=('i686' 'x86_64') +url="https://github.com/cyrozap/libcyusbserial" +license=('LGPL') +depends=('libusb') +source=("https://github.com/cyrozap/libcyusbserial/archive/v${pkgver}.tar.gz") +sha1sums=('4d28198e7d1777d2770edbdf7161ddde39bac276') + +build() { + cd "${pkgname}-${pkgver}" + + mkdir -p build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr ../ + + make +} + +package() { + cd "${pkgname}-${pkgver}/build" + + make DESTDIR="${pkgdir}" install + + [ -d "${pkgdir}"/usr/lib64 ] && mv "${pkgdir}"/usr/{lib64,lib} +} |