From 6adb2373ca19fdf187443a327207570b6d5feaaf Mon Sep 17 00:00:00 2001 From: taotieren Date: Fri, 28 Oct 2022 21:51:42 +0800 Subject: [PATCH 1/2] Add asciidoctor-web-pdf-git --- .../asciidoctor-web-pdf-git/.gitignore | 2 + archlinuxcn/asciidoctor-web-pdf-git/PKGBUILD | 37 +++++++++++++++++++ .../asciidoctor-web-pdf-git/lilac.yaml | 14 +++++++ 3 files changed, 53 insertions(+) create mode 100644 archlinuxcn/asciidoctor-web-pdf-git/.gitignore create mode 100644 archlinuxcn/asciidoctor-web-pdf-git/PKGBUILD create mode 100644 archlinuxcn/asciidoctor-web-pdf-git/lilac.yaml diff --git a/archlinuxcn/asciidoctor-web-pdf-git/.gitignore b/archlinuxcn/asciidoctor-web-pdf-git/.gitignore new file mode 100644 index 000000000000..37bb465dc2db --- /dev/null +++ b/archlinuxcn/asciidoctor-web-pdf-git/.gitignore @@ -0,0 +1,2 @@ +* +*.* diff --git a/archlinuxcn/asciidoctor-web-pdf-git/PKGBUILD b/archlinuxcn/asciidoctor-web-pdf-git/PKGBUILD new file mode 100644 index 000000000000..0d42f76bf8d5 --- /dev/null +++ b/archlinuxcn/asciidoctor-web-pdf-git/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: taotieren + +pkgname=asciidoctor-web-pdf-git +pkgver=1.0.0.alpha.16.r5.gc613be3 +pkgrel=1 +pkgdesc="A PDF converter for AsciiDoc based on web technologies. It allows complex layouts to be defined with CSS and JavaScript, while writing the content in AsciiDoc." +arch=('any') +url="https://github.com/Mogztter/asciidoctor-web-pdf" +license=('MIT') +provides=(${pkgname}) +conflicts=(${pkgname} ${pkgname%-git} asciidoctor-pdf) +#replaces=(${pkgname}) +depends=(npm poppler ghostscript) +makedepends=() +backup=() +options=('!strip') +install= +source=("${pkgname%-git}::git+${url}.git") +sha256sums=('SKIP') +noextract=() + +pkgver() { + cd "${srcdir}/${pkgname%-git}" + git describe --long --tags | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + npm install -g --prefix "${pkgdir}/usr" "${srcdir}/${pkgname%-git}" + + # Non-deterministic race in npm gives 777 permissions to random directories. + # See https://github.com/npm/cli/issues/1103 for details. + find "${pkgdir}/usr" -type d -exec chmod 755 {} + + + # npm gives ownership of ALL FILES to build user + # https://bugs.archlinux.org/task/63396 + chown -R root:root "${pkgdir}" +} diff --git a/archlinuxcn/asciidoctor-web-pdf-git/lilac.yaml b/archlinuxcn/asciidoctor-web-pdf-git/lilac.yaml new file mode 100644 index 000000000000..5d15b45326c5 --- /dev/null +++ b/archlinuxcn/asciidoctor-web-pdf-git/lilac.yaml @@ -0,0 +1,14 @@ +maintainers: + - github: taotieren + +build_prefix: extra-x86_64 + +pre_build: vcs_update + +post_build_script: | + git_pkgbuild_commit() + update_aur_repo() + +update_on: + - source: github + github: Mogztter/asciidoctor-web-pdf From 293e6d582f574094556f7c190baa8215f0bbd504 Mon Sep 17 00:00:00 2001 From: taotieren Date: Mon, 31 Oct 2022 14:10:58 +0800 Subject: [PATCH 2/2] Delete .gitignore --- archlinuxcn/asciidoctor-web-pdf-git/.gitignore | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 archlinuxcn/asciidoctor-web-pdf-git/.gitignore diff --git a/archlinuxcn/asciidoctor-web-pdf-git/.gitignore b/archlinuxcn/asciidoctor-web-pdf-git/.gitignore deleted file mode 100644 index 37bb465dc2db..000000000000 --- a/archlinuxcn/asciidoctor-web-pdf-git/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -*.*