#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=libusb-compat
pkgver=0.1.8
pkgrel=01
pkgdesc="Library to enable user space application programs to communicate with USB devices"
arch=('x86_64')
url="http://libusb.sourceforge.net/"
depends=('libusb' 'sh')
source=("https://github.com/libusb/libusb-compat-0.1/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")

prepare() {
  cd ${pkgname}-${pkgver}
  ./autogen.sh
}

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr --disable-static
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}

#---- license gpg-key sha256sums ----

license=('LGPL')

sha256sums=(f79dcc3b2c2ef4141e5300faf71519badde85d4ac87fd3372d2b88bba8af05dc) # libusb-compat-0.1.8.tar.gz


