summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: baa0ecd565b34bc4dba60f01b41b1d6af20fdca7 (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
# Maintainer: smlb <smlb at riseup dot net>

pkgname=libthinkpad-git
pkgver=2.3.r7.g5f9256f
pkgrel=1
pkgdesc="A general purpose userspace ThinkPad library"
arch=('i686' 'x86_64')
url="https://github.com/libthinkpad/libthinkpad"
license=('BSD')
depends=('libsystemd')
makedepends=('cmake' 'git' 'pkg-config')
options=('!strip')
source=("git://github.com/libthinkpad/libthinkpad")
md5sums=('SKIP')

_gitname=libthinkpad 

pkgver() {
    cd "$srcdir/$_gitname"
    git -C "${_pkgname}" describe --long | sed "s/-/.r/;s/-/./g"
}

build () {
    cd "$srcdir/$_gitname"
    cmake . -DCMAKE_INSTALL_PREFIX=/usr
    make 
}

package() {
    cd "$srcdir/$_gitname"
    make DESTDIR=$pkgdir install
}