diff options
author | bl00dy1837 | 2020-12-13 21:21:50 +0100 |
---|---|---|
committer | bl00dy1837 | 2020-12-13 21:21:50 +0100 |
commit | 66b98ec318cda1dd84947a40c40a9bcab0147796 (patch) | |
tree | 6151b06c0d771597895f94d925fb321316154542 | |
download | aur-66b98ec318cda1dd84947a40c40a9bcab0147796.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f40087ed6920 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = openkropki-svn + pkgdesc = OpenKropki is an open-source and multiplatform implementation of the kropki game. It runs on most POSIX systems. MIT license. + pkgver = r276 + pkgrel = 1 + url = http://openkropki.sourceforge.net/ + arch = x86_64 + arch = aarch64 + license = MIT + makedepends = subversion + makedepends = tar + makedepends = make + makedepends = gcc + makedepends = sed + depends = sdl2_ttf + depends = sdl2 + depends = zlib + conflicts = openkropki + source = svn+https://svn.code.sf.net/p/openkropki/code/trunk + sha512sums = SKIP + +pkgname = openkropki-svn + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..46b82b34e308 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: <reg-archlinux AT klein DOT tuxli DOT ch> +_pkgname=openkropki +pkgname=${_pkgname}-svn +pkgver=r276 +pkgrel=1 +pkgdesc='OpenKropki is an open-source and multiplatform implementation of the kropki game. It runs on most POSIX systems. MIT license.' +url='http://openkropki.sourceforge.net/' +license=('MIT') +arch=('x86_64' 'aarch64') +conflicts=(openkropki) +depends=('sdl2_ttf' 'sdl2' 'zlib') +makedepends=('subversion' 'tar' 'make' 'gcc' 'sed') +source=("svn+https://svn.code.sf.net/p/openkropki/code/trunk") +sha512sums=('SKIP') + +pkgver() { + cd "$srcdir/trunk" + local ver="$(svnversion)" + printf "r%s" "${ver//[[:alpha:]]}" +} + +prepare() { + cd "$srcdir/trunk" + sed -n '/.*MIT\ License.*/,$p' openkropki.txt > LICENSE +} + +build() { + cd ${srcdir}"/trunk/" + make +} + +package() { + mkdir -p "${pkgdir}/usr/bin/" + cd ${srcdir}"/trunk/" + mv openkropki ${pkgdir}/usr/bin/ + install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" +} |