summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcaltlgin2020-10-08 07:24:24 +1300
committercaltlgin2020-10-08 07:24:24 +1300
commit9cacbf4231358c6da1b9534107fcb78ff95c6dbb (patch)
tree59a9bd8b513c2b009c99e8795905ad4b6cba4670
parent3895e50b4bc86fa607da7542e57a0091806b8fbe (diff)
downloadaur-9cacbf4231358c6da1b9534107fcb78ff95c6dbb.tar.gz
Refactored PKGBUILD
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD14
2 files changed, 8 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a26285961f3..97054c552cd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = klavaro-svn
pkgdesc = Flexible touch typing tutor that supports customizable keyboard layouts
- pkgver = 3.10.r120
+ pkgver = 3.10.r121
pkgrel = 1
url = https://klavaro.sourceforge.io
arch = x86_64
@@ -12,6 +12,7 @@ pkgbase = klavaro-svn
depends = gtk3
optdepends = espeakup: voice output
provides = klavaro
+ conflicts = klavaro
source = klavaro::svn+https://svn.code.sf.net/p/klavaro/code/trunk
sha256sums = SKIP
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"