summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ef9677efd683f4f5eda38dc4a1b07c4c0dd40ffd (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
# Maintainer: Jakob Schöttl <jschoett gmail com>
# Maintainer: phi <phi at qgr dot se>
# Contributor: smlb <smlb at riseup dot net>

pkgname=dockd
pkgver=1.3.1
pkgrel=2
pkgdesc="Lenovo ThinkPad Dock Management Daemon"
arch=('i686' 'x86_64')
url="https://github.com/libthinkpad/dockd"
license=('BSD')
depends=('libthinkpad' 'libxrandr')
makedepends=('cmake')
source=("https://github.com/libthinkpad/dockd/archive/refs/tags/$pkgver.tar.gz")
md5sums=('9bc7f0a814eafe5caea69b7b018128bc')

prepare() {
    mkdir -p "$srcdir/$pkgname-$pkgver/etc"
}

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

package() {
    cd "$pkgname-$pkgver"
    install -Dm755 -d etc "$pkgdir/etc/$pkgname"
    make DESTDIR=$pkgdir install
    chmod +x "$pkgdir/etc/$pkgname/dock.hook"
    chmod +x "$pkgdir/etc/$pkgname/undock.hook"
}