diff options
author | João Figueiredo | 2021-08-30 00:09:18 +0100 |
---|---|---|
committer | João Figueiredo | 2021-08-30 00:09:18 +0100 |
commit | db37933c57961aaceaadbd33e6873ae45a0525e2 (patch) | |
tree | dfb2dd61ae23e77007583ff54d24958439566be0 | |
parent | 85f2c7341e795fe14fbcf41e6f9f35a997ad0e91 (diff) | |
download | aur-db37933c57961aaceaadbd33e6873ae45a0525e2.tar.gz |
Merged with official ABS rsibreak PKGBUILD
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 70 |
2 files changed, 37 insertions, 55 deletions
@@ -1,19 +1,19 @@ pkgbase = rsibreak-git - pkgdesc = RSIBreak takes care of your health and regularly breaks your work to avoid repetitive strain injury (RSI) - pkgver = 20120611 - pkgrel = 2 - url = http://userbase.kde.org/RSIBreak - arch = i686 + pkgdesc = Takes care of your health and regularly breaks your work to avoid repetitive strain injury (RSI) + pkgver = 0.12.14_r936.g8b4b9e4 + pkgrel = 1 + url = https://apps.kde.org/rsibreak/ arch = x86_64 license = GPL - makedepends = automoc4 makedepends = git - depends = libxss - depends = kdelibs - depends = oxygen-icons + makedepends = extra-cmake-modules-git + makedepends = kdoctools-git + depends = knotifyconfig-git + depends = kidletime-git + depends = hicolor-icon-theme provides = rsibreak conflicts = rsibreak - options = libtool + source = git+https://github.com/KDE/rsibreak.git + sha256sums = SKIP pkgname = rsibreak-git - @@ -1,52 +1,34 @@ +# Merged with official ABS rsibreak PKGBUILD by João, 2021/08/25 (all respective contributors apply herein) +# Maintainer: João Figueiredo & chaotic-aur <islandc0der@chaotic.cx> +# Contributor: Dmytro Kostiuchenko <edio@archlinux.us> # Contributor: Dmytro Kostiuchenko <edio@archlinux.us> -# Maintainer: Dmytro Kostiuchenko <edio@archlinux.us> pkgname=rsibreak-git -pkgver=20120611 -pkgrel=2 -pkgdesc="RSIBreak takes care of your health and regularly breaks your work to avoid repetitive strain injury (RSI)" -arch=(i686 x86_64) -url="http://userbase.kde.org/RSIBreak" -license=('GPL') -depends=('libxss' 'kdelibs' 'oxygen-icons') -makedepends=('automoc4' 'git') -options=('libtool') -provides=('rsibreak') -conflicts=('rsibreak') - -source=() -md5sums=() - -_gitroot=git://anongit.kde.org/rsibreak.git -_gitname=rsibreak +pkgver=0.12.14_r936.g8b4b9e4 +pkgrel=1 +pkgdesc='Takes care of your health and regularly breaks your work to avoid repetitive strain injury (RSI)' +url='https://apps.kde.org/rsibreak/' +arch=($CARCH) +license=(GPL) +depends=(knotifyconfig-git kidletime-git hicolor-icon-theme) +makedepends=(git extra-cmake-modules-git kdoctools-git) +conflicts=(${pkgname%-git}) +provides=(${pkgname%-git}) +source=("git+https://github.com/KDE/${pkgname%-git}.git") +sha256sums=('SKIP') + +pkgver() { + cd ${pkgname%-git} + _ver="$(git describe | sed 's/^v//;s/-.*//')" + echo "${_ver}_r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" +} build() { - cd ${srcdir} - - msg "Conneckint to GIT server" - - if [ -d $_gitname ] ; then - cd $_gitname && git pull origin - msg "The local files are updated." - else - git clone --depth=1 $_gitroot $_gitname - fi - msg "GIT checkout done or server timeout" - - rm -rf "$srcdir/$_gitname-build" - mkdir $srcdir/$_gitname-build - cd "$srcdir/$_gitname" && ls -A | grep -v .git | xargs -d '\n' cp -r -t ../$_gitname-build - cd "$srcdir/$_gitname-build" - - cmake ../${_gitname} \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr - make + cmake -B build -S ${pkgname%-git} \ + -DBUILD_TESTING=OFF + cmake --build build } -package(){ - cd ${srcdir}/$_gitname-build - make DESTDIR=${pkgdir} install +package() { + DESTDIR="$pkgdir" cmake --install build } -# vim:syntax=sh - |