diff options
author | caltlgin | 2020-10-05 11:03:55 +1300 |
---|---|---|
committer | caltlgin | 2020-10-05 11:03:55 +1300 |
commit | 48a0288cd779fa3d70d255e06ae6f5a76871ea4d (patch) | |
tree | 90940752e3151e5e86233c847cb9ab6eb602e815 | |
download | aur-48a0288cd779fa3d70d255e06ae6f5a76871ea4d.tar.gz |
Add to AUR
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f46a1383e39d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = nanonote-git + pkgdesc = Minimalist note taking application + pkgver = 1.3.0.r0.g7230986 + pkgrel = 1 + url = https://github.com/agateau/nanonote + arch = x86_64 + license = BSD + makedepends = cmake + makedepends = git + makedepends = python-jinja + makedepends = python-pyaml + depends = hicolor-icon-theme + depends = qt5-base + source = git+https://github.com/agateau/nanonote.git + source = git+https://github.com/agateau/qpropgen.git + source = git+https://github.com/itay-grudev/SingleApplication.git + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + +pkgname = nanonote-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ce76bc060ef0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz> + +_pkgname='nanonote' +pkgname="${_pkgname}-git" +pkgver=1.3.0.r0.g7230986 +pkgrel=1 +pkgdesc='Minimalist note taking application ' +arch=('x86_64') +url='https://github.com/agateau/nanonote' +license=('BSD') +depends=('hicolor-icon-theme' 'qt5-base') +makedepends=('cmake' 'git' 'python-jinja' 'python-pyaml') +source=("git+${url}.git" + "git+${url%/*}/qpropgen.git" + "git+https://github.com/itay-grudev/SingleApplication.git") +sha256sums=('SKIP' 'SKIP' 'SKIP') + +prepare() { + cd "${_pkgname}" + # Submodule list: https://github.com/agateau/nanonote/raw/master/.gitmodules + git submodule init + git config submodule.qpropgen.url "${srcdir}/qpropgen" + git config submodule.singleapplication.url "${srcdir}/SingleApplication" + git submodule update +} + +pkgver() { + git -C "${_pkgname}" describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + export CFLAGS+=" ${CPPFLAGS}" + export CXXFLAGS+=" ${CPPFLAGS}" + cmake -B build -S "${_pkgname}" \ + -DCMAKE_BUILD_TYPE='None' \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -Wno-dev + make -C build +} + +package() { + make DESTDIR="${pkgdir}" PREFIX="/usr" -C build install + install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" "${_pkgname}/README.md" + install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" "${_pkgname}/LICENSE" +} + +# vim: ts=2 sw=2 et: |