summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f1e02e3c78f1155cd2dffd377e8caffe47af15d3 (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
# Maintainer: Martin Dünkelmann <nc-duenkekl3 at netcologne.de>
# Contributor: smlb <smlb at riseup dot net>

pkgname=libthinkpad-git
pkgver=2.6.r4.gd8a8681
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' 'systemd')
conflicts=('libthinkpad')
provides=('libthinkpad')
options=('!strip')
_gitname=libthinkpad
source=("git+https://github.com/libthinkpad/libthinkpad" "$_gitname.install")
md5sums=('SKIP'
         'b44e3c7ddac879d57b45a709544df785')
install=$_gitname.install


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

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

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