diff options
author | Peter K. Moss | 2020-11-03 19:19:04 +0100 |
---|---|---|
committer | Peter K. Moss | 2020-11-03 19:19:04 +0100 |
commit | 07999d4260d48c05a5f30617bcad858638bf80ee (patch) | |
tree | 9b8d7f67a0d50814ab244e059c9685c05b611790 | |
download | aur-07999d4260d48c05a5f30617bcad858638bf80ee.tar.gz |
Created git version of qmarkdown
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c811f28a0ef3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = qmarkdown-git + pkgdesc = qMarkdown - minimal markdown viewer + pkgver = r60.5b0fdf7 + pkgrel = 1 + url = https://github.com/Peterkmoss/qmarkdown + arch = x86_64 + license = GPL + makedepends = gcc>=9 + makedepends = qt5-base + makedepends = git + depends = qt5-base + optdepends = ttf-roboto + provides = qmarkdown + conflicts = qmarkdown + source = git+https://github.com/Peterkmoss/qmarkdown + md5sums = SKIP + +pkgname = qmarkdown-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1876e4ab4589 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Peter K. Moss <peter@moss.dk> +pkgname=qmarkdown-git +pkgver=r60.5b0fdf7 +pkgrel=1 +pkgdesc="qMarkdown - minimal markdown viewer" +arch=("x86_64") +url="https://github.com/Peterkmoss/qmarkdown" +license=('GPL') +depends=('qt5-base') +optdepends=('ttf-roboto') +makedepends=('gcc>=9' 'qt5-base' 'git') +provides=('qmarkdown') +conflicts=('qmarkdown') +source=('git+https://github.com/Peterkmoss/qmarkdown') +md5sums=('SKIP') + +pkgver() { + cd "${pkgname%-git}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${pkgname%-git}" + make +} + +package() { + cd "${pkgname%-git}" + make PREFIX=/usr DESTDIR="$pkgdir" install +} |