summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormurlakatamenka2019-07-16 01:13:09 +0300
committermurlakatamenka2019-07-16 01:13:09 +0300
commit397736874b30b980885a7ef2d51befbef2ce22fc (patch)
tree94386e6ca1623eea4cbdbf54556bf4f33c5fdaa5
downloadaur-397736874b30b980885a7ef2d51befbef2ce22fc.tar.gz
Initial commit
-rw-r--r--.SRCINFO32
-rw-r--r--PKGBUILD41
2 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..61874f2ee66
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+pkgbase = corectrl-git
+ pkgdesc = Application to control your hardware with ease using application profiles
+ pkgver = 1.0.3.r0.gf142706
+ pkgrel = 1
+ url = https://gitlab.com/corectrl/corectrl
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = git
+ makedepends = cmake>=3.3
+ makedepends = botan>=2.2.0
+ makedepends = qt5-base>=5.9
+ makedepends = qt5-tools
+ makedepends = kauth
+ makedepends = karchive
+ makedepends = gcc>=7.2
+ makedepends = extra-cmake-modules
+ makedepends = qt5-charts
+ makedepends = qt5-quickcontrols
+ makedepends = qca
+ depends = procps-ng
+ depends = hwids
+ optdepends = vulkan-tools: for vulkaninfo
+ optdepends = mesa-demos: for glxinfo
+ optdepends = util-linux: for lscpu
+ provides = corectrl
+ conflicts = corectrl
+ source = git+https://gitlab.com/corectrl/corectrl.git
+ md5sums = SKIP
+
+pkgname = corectrl-git
+
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
+}