summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authormurlakatamenka2019-07-16 01:13:09 +0300
committermurlakatamenka2019-07-16 01:13:09 +0300
commit397736874b30b980885a7ef2d51befbef2ce22fc (patch)
tree94386e6ca1623eea4cbdbf54556bf4f33c5fdaa5 /PKGBUILD
downloadaur-397736874b30b980885a7ef2d51befbef2ce22fc.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..30e8273e72f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Sergey A. <murlakatamenka@disroot.org>
+# based off `corectrl` PKGBUILD by Sergey Kostyuchenko <derfenix@gmail.com>
+
+_pkgname=corectrl
+pkgname="$_pkgname-git"
+pkgver=1.0.3.r0.gf142706
+pkgrel=1
+pkgdesc="Application to control your hardware with ease using application profiles"
+url="https://gitlab.com/corectrl/corectrl"
+license=('GPL3')
+arch=('i686' 'x86_64')
+depends=('procps-ng' 'hwids')
+makedepends=('git' 'cmake>=3.3' 'botan>=2.2.0' 'qt5-base>=5.9' 'qt5-tools' 'kauth' 'karchive' 'gcc>=7.2' 'extra-cmake-modules' 'qt5-charts' 'qt5-quickcontrols' 'qca')
+optdepends=(
+ 'vulkan-tools: for vulkaninfo'
+ 'mesa-demos: for glxinfo'
+ 'util-linux: for lscpu'
+)
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+source=("git+$url.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ mkdir build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX="$pkgdir/usr/" -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF ..
+ make ${MAKEFLAGS}
+}
+
+package() {
+ cd "$srcdir/$_pkgname/build"
+ sed -i -- 's/\/usr/${CMAKE_INSTALL_PREFIX}/g' src/helper/cmake_install.cmake
+ make install
+}