summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcaltlgin2020-07-12 06:51:02 +1200
committercaltlgin2020-07-12 06:51:02 +1200
commite74d26be049cc87e086c6602492819cbfbd5624a (patch)
tree5902728595f8d486f834a7e48496db61a5ff2ab2
downloadaur-e74d26be049cc87e086c6602492819cbfbd5624a.tar.gz
Add to AUR
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD46
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d99b50f6bda
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = klavaro-svn
+ pkgdesc = Flexible touch typing tutor that supports customizable keyboard layouts
+ pkgver = 3.10.r118M
+ pkgrel = 1
+ url = https://klavaro.sourceforge.io
+ arch = x86_64
+ license = GPL3
+ makedepends = clang
+ makedepends = intltool
+ makedepends = subversion
+ depends = gtk3
+ optdepends = espeakup: voice output
+ provides = klavaro
+ source = klavaro::svn+https://svn.code.sf.net/p/klavaro/code/trunk
+ sha256sums = SKIP
+
+pkgname = klavaro-svn
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..31944ea8888
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
+# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
+
+_pkgname=klavaro
+pkgname=${_pkgname}-svn
+pkgver=3.10.r118M
+pkgrel=1
+pkgdesc='Flexible touch typing tutor that supports customizable keyboard layouts'
+arch=('x86_64')
+url='https://klavaro.sourceforge.io'
+license=('GPL3')
+depends=('gtk3')
+makedepends=('clang' 'intltool' 'subversion')
+optdepends=('espeakup: voice output')
+provides=("${_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)"
+}
+
+build() {
+ cd "${_pkgname}"
+ export CXX=clang++
+ export CC=clang
+ autoreconf --install
+ ./configure \
+ --prefix=/usr \
+ --disable-static
+ make
+}
+
+check() {
+ make -C "${_pkgname}" check
+}
+
+package() {
+ make DESTDIR="${pkgdir}" -C "${_pkgname}" install
+ install -Dm644 "${_pkgname}/README" "${pkgdir}/usr/share/doc/${_pkgname}/README"
+ sed -i 's|/usr/share/icons/hicolor/24x24/apps/klavaro.png|klavaro|' \
+ "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
+}
+
+# vim: ts=2 sw=2 et: