blob: 1007d50c9aae974f2c7713dc5281b7a4bfca3b66 (
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
|
# Maintainer: yehuthi <yehuthith@gmail.com>
pkgname=linuxflip-git
pkgver=1.0.0
pkgrel=1
pkgdesc="Detects and executes commands when the computer switches to and from tablet mode."
url="https://github.com/yehuthi/linuxflip"
arch=('i686' 'x86_64')
makedepends=('git' 'cmake')
source=("repo::git+$url")
sha256sums=("SKIP")
pkgver() {
git --git-dir="$srcdir/repo/.git" describe --tags --abbrev=0 | cut -c 2-
}
build() {
mkdir "$srcdir/repo/build" && cd $_
cmake \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev \
..
cmake --build .
}
package() {
DESTDIR="$pkgdir" cmake --install "$srcdir/repo/build"
}
|