summaryrefslogtreecommitdiffstats
path: root/abs/core/libgusb/PKGBUILD
blob: 62252a9175efd9d41555a893d29e146757a02680 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
# $Id$
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>

pkgname=libgusb
pkgver=0.2.11
pkgrel=1
pkgdesc='GObject wrapper for libusb1'
url='https://github.com/hughsie/libgusb'
arch=('x86_64')
license=('LGPL2.1')
depends=('glib2' 'glibc' 'libusb')
makedepends=('git' 'gobject-introspection' 'gtk-doc' 'python2' 'vala')
_commit='732b49b528cc69bf4c8999e088835ecab9d5c05c'
source=("git+https://github.com/hughsie/libgusb#commit=$_commit")
sha256sums=('SKIP')

pkgver() {
  cd libgusb

  git describe --tags | sed 's/^gusb_//;s/_/./g;s/-/+/g'
}

prepare() {
  cd libgusb

  NOCONFIGURE=1 ./autogen.sh
}

build() {
  cd libgusb

  ./configure \
    --prefix='/usr' \
    --enable-gtk-doc \
    --disable-static
  make
}

package() {
  cd libgusb

  make DESTDIR="${pkgdir}" install
}

# vim: ts=2 sw=2 et: