summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorcaltlgin2020-10-08 07:24:24 +1300
committercaltlgin2020-10-08 07:24:24 +1300
commit9cacbf4231358c6da1b9534107fcb78ff95c6dbb (patch)
tree59a9bd8b513c2b009c99e8795905ad4b6cba4670 /PKGBUILD
parent3895e50b4bc86fa607da7542e57a0091806b8fbe (diff)
downloadaur-9cacbf4231358c6da1b9534107fcb78ff95c6dbb.tar.gz
Refactored PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 6 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6bfd7dd29af..69866448478 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,9 @@
# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
-_pkgname=klavaro
-pkgname=${_pkgname}-svn
-pkgver=3.10.r120
+_pkgname='klavaro'
+pkgname="${_pkgname}-svn"
+pkgver=3.10.r121
pkgrel=1
pkgdesc='Flexible touch typing tutor that supports customizable keyboard layouts'
arch=('x86_64')
@@ -13,12 +13,14 @@ depends=('gtk3')
makedepends=('clang' 'intltool' 'python' 'subversion')
optdepends=('espeakup: voice output')
provides=("${_pkgname}")
+conflicts=("${_pkgname}")
source=("${_pkgname}::svn+https://svn.code.sf.net/p/${_pkgname}/code/trunk")
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
- echo "$(grep -Pm1 '[\d.]+' NEWS | cut -d' ' -f2).r$(svnversion)"
+ local revision="$(svnversion)"
+ printf "%s.r%s" "$(grep -Pom1 '^Version \K[\d.]+' 'NEWS')" "${revision//[[:alpha:]]}"
}
build() {
@@ -32,10 +34,6 @@ build() {
make
}
-check() {
- make -C "${_pkgname}" check
-}
-
package() {
make DESTDIR="${pkgdir}" -C "${_pkgname}" install
install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" "${_pkgname}/README"