diff options
author | Malte Veerman | 2015-06-08 22:33:01 +0200 |
---|---|---|
committer | Malte Veerman | 2015-06-08 22:33:01 +0200 |
commit | 33fb5a295946f95f8fe0c2ead33ddbe6bfd87bcd (patch) | |
tree | cb44509320610c88addb24411a7c53e5f88e5055 | |
download | aur-33fb5a295946f95f8fe0c2ead33ddbe6bfd87bcd.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 52 |
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..60709030d6b9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = fancontrol-gui-git + pkgdesc = GUI for the fancontrol script and systemd service + pkgver = 0.1.r7.gd6de588 + pkgrel = 1 + url = https://github.com/Maldela/Fancontrol-GUI + arch = any + license = GPL2 + makedepends = git + makedepends = gcc + makedepends = cmake + makedepends = extra-cmake-modules + depends = qt5-base + depends = qt5-quickcontrols + depends = qt5-declarative + depends = lm_sensors + depends = kauth + depends = systemd + provides = fancontrol-gui + conflicts = fancontrol-gui + source = https://github.com/Maldela/Fancontrol-GUI.git + md5sums = SKIP + +pkgname = fancontrol-gui-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f26d0545714f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ + +# Maintainer: Malte Veerman <maldela@halloarsch.de> + +pkgname=fancontrol-gui-git +pkgver=0.1.r7.gd6de588 +pkgrel=1 +pkgdesc="GUI for the fancontrol script and systemd service" +arch=('any') +url="https://github.com/Maldela/Fancontrol-GUI" +license=('GPL2') +depends=('qt5-base' 'qt5-quickcontrols' 'qt5-declarative' 'lm_sensors' 'kauth' 'systemd') +makedepends=('git' 'gcc' 'cmake' 'extra-cmake-modules' ) +provides=('fancontrol-gui') +conflicts=('fancontrol-gui') +source=('https://github.com/Maldela/Fancontrol-GUI.git') +md5sums=('SKIP') + +_gitroot=https://github.com/Maldela/Fancontrol-GUI +_gitname=Fancontrol-GUI + + +pkgver() { + cd "$srcdir/$_gitname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [[ -d "$_gitname" ]]; then + cd "$_gitname" && git pull origin + msg "The local files are updated." + else + git clone "$_gitroot" "$_gitname" + fi + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" + + cmake -DCMAKE_INSTALL_PREFIX=/usr . + make +} + +package() { + cd "$srcdir/$_gitname-build" + make DESTDIR="$pkgdir/" install +}
\ No newline at end of file |