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

pkgname=libthinkpad
pkgver=2.6
pkgrel=5
pkgdesc="A general purpose userspace ThinkPad library"
arch=('i686' 'x86_64')
url="https://github.com/libthinkpad/libthinkpad"
license=('BSD')
depends=('libsystemd' 'acpid')
makedepends=('cmake' 'systemd')
source=("https://libthinkpad.github.io/ftp/$pkgname/$pkgname-$pkgver.tar.gz" "$pkgname.install")
md5sums=('66750d4ece8e12605e022acc134d352f'
'b3e3589091b8d70357a7aa75d329e104')

install=$pkgname.install

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

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