diff options
author | atemu | 2019-09-19 00:09:51 +0200 |
---|---|---|
committer | atemu | 2019-09-19 00:09:51 +0200 |
commit | ab4d90e44f67b1faf0e9d66341bf3bc4f2492f9e (patch) | |
tree | 93a08dff7a8a7b8bd0e23582ccea054793ece3b8 | |
download | aur-ab4d90e44f67b1faf0e9d66341bf3bc4f2492f9e.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 57 |
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bbb29aeb1b97 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = notekit-git + pkgdesc = A GTK3 hierarchical markdown notetaking application with tablet support. + pkgver = r56.1581970 + pkgrel = 1 + url = https://github.com/blackhole89/notekit + arch = x86_64 + license = GPL3 + makedepends = gcc + makedepends = make + makedepends = cmake + depends = gtkmm3>=3.2 + depends = gtksourceviewmm>=3.18 + depends = jsoncpp + depends = zlib + source = git+https://github.com/blackhole89/notekit.git + sha256sums = SKIP + +pkgname = notekit-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f6251f3c0b9e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,57 @@ +pkgname=notekit-git +basename=${pkgname%-git} +pkgver=r56.1581970 +pkgrel=1 +pkgdesc="A GTK3 hierarchical markdown notetaking application with tablet support." +arch=('x86_64') +url="https://github.com/blackhole89/notekit" +license=('GPL3') +depends=('gtkmm3>=3.2' 'gtksourceviewmm>=3.18' 'jsoncpp' 'zlib') +makedepends=('gcc' 'make' 'cmake') +source=('git+https://github.com/blackhole89/notekit.git') +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/$basename" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare(){ + #workaround for "sub-command STRIP requires two arguments" error + sed -i 's/${CL_TMP_VAR}/"${CL_TMP_VAR}"/g' "$srcdir"/notekit/CMakeLists.txt +} + +build() { + cd "$srcdir/$basename" + cmake . + make +} + +package() { + #install binary + install -Dm755 "$srcdir"/notekit/cmake-build-Release/output/notekit -t "$pkgdir"/usr/bin/ + + #install doc + install -Dm644 "$srcdir"/notekit/README.md -t "$pkgdir"/usr/share/doc/notekit/ + + #install license + install -Dm644 "$srcdir"/notekit/LICENSE -t "$pkgdir"/usr/share/licenses/ + + #install "data" and "sourceview" + mkdir -p "$pkgdir"/usr/share/notekit/ + cp -r "$srcdir"/notekit/data "$srcdir"/notekit/sourceview "$pkgdir"/usr/share/notekit/ + + #install desktop shortcut (taken from lyessaadi/notekit on COPR and modified to fit Arch) + mkdir -p "$pkgdir"/usr/share/applications/ + echo "[Desktop Entry] +Version="$pkgver" +Name=NoteKit +GenericName=NoteKit +Comment=Write your notes in instantly-formatted Markdown +Icon=accessories-text-editor +Exec=notekit +Terminal=false +Type=Application +Categories=Office; +Keywords=note;onenote;notetaking;markdown;" > "$pkgdir"/usr/share/applications/notekit.desktop +} |