summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Hohenadel2019-04-27 15:22:04 +0200
committerStefan Hohenadel2019-04-27 15:22:04 +0200
commit58a9c5f73f23b036533643cb73d3f079f78bc4a0 (patch)
tree166adf7d2f1e00119f7eb1df7f3e683d31cf5496
downloadaur-58a9c5f73f23b036533643cb73d3f079f78bc4a0.tar.gz
Initial upload
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD67
2 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..93a7bcd442d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = libarcstk-git
+ pkgdesc = Library to calculate and verify AccurateRip checksums and ids
+ pkgver = r135.e995eac
+ pkgrel = 1
+ url = https://codeberg.org/tristero/libarcstk
+ arch = x86_64
+ license = MIT
+ makedepends = git>=2.0
+ makedepends = cmake>=3.9.6
+ depends = gcc-libs
+ optdepends = doxygen>=1.8.14: build documentation
+ optdepends = texlive-bin: build documentation manual
+ optdepends = python-virtualenv: build HTML documentation with m.css
+ provides = libarcstk
+ conflicts = libarcstk
+ source = libarcstk::git+ssh://git@codeberg.org/tristero/libarcstk.git#branch=master
+ md5sums = SKIP
+
+pkgname = libarcstk-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b27374062fc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,67 @@
+# Maintainer: tristero <crf8472@web.de>
+
+pkgname=libarcstk-git
+pkgver=r135.e995eac
+pkgrel=1
+pkgdesc='Library to calculate and verify AccurateRip checksums and ids'
+arch=('x86_64')
+url="https://codeberg.org/tristero/${pkgname%-git}"
+license=('MIT')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+depends=('gcc-libs')
+makedepends=('git>=2.0' 'cmake>=3.9.6')
+optdepends=('doxygen>=1.8.14: build documentation'
+ 'texlive-bin: build documentation manual'
+ 'python-virtualenv: build HTML documentation with m.css')
+source=("${pkgname%-git}::git+ssh://git@codeberg.org/tristero/${pkgname%-git}.git#branch=master")
+md5sums=('SKIP')
+
+
+pkgver()
+{
+ cd "${srcdir}/${pkgname%-git}"
+
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+
+## No prepare() function
+
+
+build()
+{
+ msg "Configure"
+
+ cmake -DCMAKE_BUILD_TYPE=Release \
+ -DWITH_TESTS=ON \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ "${srcdir}/${pkgname%-git}/"
+
+ msg "Build"
+
+ cmake --build .
+}
+
+
+check()
+{
+ msg "Perform tests"
+
+ ctest
+}
+
+
+package()
+{
+ msg "Install library and files"
+
+ make DESTDIR="${pkgdir}/" install
+
+
+ msg "Install license"
+
+ install -D -m644 "${srcdir}/${pkgname%-git}/LICENSE" \
+ "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
+}
+