summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 32feb18e2dc9fbf56e33db43b0c6fcf5e26a5f5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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')
sha256sums=('9887c5aeac7ac266850228be9cff6ef884237413df8c25eb96c29a14b889b14c')

build() {
  cd "${pkgname}-${pkgver}"

  mkdir -p build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ../

  make
}

package() {
  cd "${pkgname}-${pkgver}/build"

  make DESTDIR="${pkgdir}" install

  if [ -d "${pkgdir}"/usr/lib64 ]; then
    mv "${pkgdir}"/usr/{lib64,lib}
  fi
}