summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgenstern2020-08-28 22:03:18 +1200
committerMorgenstern2020-08-28 22:03:18 +1200
commitc1bbe39f5789bbc826c8534422658a4886c4e441 (patch)
tree542c57e0d48da95fd9ab16783b718280abc0283c
downloadaur-c1bbe39f5789bbc826c8534422658a4886c4e441.tar.gz
Initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD42
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4e91f840374
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = cherrytree-git
+ pkgdesc = Hierarchical note-taking application, git version
+ pkgver = 0.99.9.r145.gdfed1e53
+ pkgrel = 1
+ url = https://github.com/giuspen/cherrytree
+ arch = x86_64
+ license = GPL3
+ makedepends = cmake
+ makedepends = git
+ makedepends = python-lxml
+ depends = gspell
+ depends = gtksourceviewmm
+ depends = libxml++2.6
+ provides = cherrytree
+ conflicts = cherrytree
+ source = git+https://github.com/giuspen/cherrytree.git
+ sha256sums = SKIP
+
+pkgname = cherrytree-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..71667b353a7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Morgenstern <charles [at] charlesbwise [dot] com>
+
+pkgname=cherrytree-git
+_pkgname=$(echo -e "${pkgname/-git/}")
+pkgver=0.99.9.r145.gdfed1e53
+pkgrel=1
+pkgdesc="Hierarchical note-taking application, git version"
+arch=('x86_64')
+url="https://github.com/giuspen/${_pkgname}"
+license=('GPL3')
+depends=('gspell'
+ 'gtksourceviewmm'
+ 'libxml++2.6')
+makedepends=('cmake'
+ 'git'
+ 'python-lxml')
+provides=("${_pkgname}")
+conflicts=("${_pkgname}")
+source=("git+https://github.com/giuspen/${_pkgname}.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ local _pkgver
+ cd "${_pkgname}"
+ _pkgver=$(grep 'CT_VERSION "' CMakeLists.txt | \
+ sed 's/.*"\(.*\)"[^"]*$/\1/')
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | \
+ sed "s/.*r/$_pkgver\.r/"
+}
+
+build() {
+ cmake \
+ -B "${_pkgname}/build" \
+ -S "${_pkgname}" \
+ -DBUILD_TESTING:BOOL=OFF \
+ -Wno-dev
+ make -C "${_pkgname}/build"
+}
+
+package() {
+ make -C "${_pkgname}/build" DESTDIR="${pkgdir}" install
+}