diff options
author | ehsan gn | 2021-06-11 02:38:27 +0430 |
---|---|---|
committer | ehsan gn | 2021-06-11 02:38:27 +0430 |
commit | 04b8294fd9d3adde13f0ff85b7422a8bfd5c32e1 (patch) | |
tree | 13930350b228136a5747bad9867ec19ff88d9ea6 | |
download | aur-04b8294fd9d3adde13f0ff85b7422a8bfd5c32e1.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..445a72d079d5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = mdpdf-git + pkgdesc = a shell script for converting markdown to pdf using lowdown. + pkgver = r4.dd100dd + pkgrel = 1 + url = https://github.com/soystemd/mdpdf + arch = x86_64 + license = GPL + makedepends = git + depends = lowdown + optdepends = zathura: for opening pdfs after markdown compilation + provides = mdpdf + conflicts = mdpdf + source = git+https://github.com/soystemd/mdpdf.git + md5sums = SKIP + +pkgname = mdpdf-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..be76149ccee1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Ehsan Ghorbannezad <ehsangn@protonmail.ch> +_pkgname='mdpdf' +pkgname="${_pkgname}-git" +pkgver=r4.dd100dd +pkgrel=1 +pkgdesc='a shell script for converting markdown to pdf using lowdown. ' +arch=(x86_64) +url='https://github.com/soystemd/mdpdf' +license=(GPL) +makedepends=(git) +depends=(lowdown) +optdepends=('zathura: for opening pdfs after markdown compilation') +provides=("$_pkgname") +conflicts=("$_pkgname") +source=("git+$url.git") +md5sums=('SKIP') + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$_pkgname" + make PREFIX=/usr DESTDIR="$pkgdir" install + install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" +} |