Skip to content

Commit f6e7369

Browse files
committed
update asciidoctor-web-pdf
1 parent 293e6d5 commit f6e7369

File tree

2 files changed

+22
-15
lines changed

2 files changed

+22
-15
lines changed
Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,41 @@
11
# Maintainer: taotieren <admin@taotieren.com>
22

33
pkgname=asciidoctor-web-pdf-git
4-
pkgver=1.0.0.alpha.16.r5.gc613be3
5-
pkgrel=1
4+
pkgver=1.0.0.alpha.16.r8.g3fe542a
5+
pkgrel=9
66
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."
7-
arch=('any')
7+
arch=($CARCH)
88
url="https://github.com/Mogztter/asciidoctor-web-pdf"
99
license=('MIT')
10-
provides=(${pkgname})
11-
conflicts=(${pkgname} ${pkgname%-git} asciidoctor-pdf)
10+
provides=(${pkgname%-git} asciidoctor-pdf)
11+
conflicts=(${pkgname%-git} asciidoctor-pdf)
1212
#replaces=(${pkgname})
13-
depends=(npm poppler ghostscript)
14-
makedepends=()
13+
depends=()
14+
makedepends=(
15+
git
16+
npm
17+
poppler
18+
ghostscript
19+
)
1520
backup=()
16-
options=('!strip')
21+
options=()
1722
install=
1823
source=("${pkgname%-git}::git+${url}.git")
1924
sha256sums=('SKIP')
2025
noextract=()
2126

2227
pkgver() {
2328
cd "${srcdir}/${pkgname%-git}"
24-
git describe --long --tags | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
29+
(
30+
set -o pipefail
31+
git describe --long --tag --abbrev=7 2>/dev/null | sed 's/^[vV]//g;s/\([^-]*-g\)/r\1/;s/-/./g' ||
32+
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
33+
)
2534
}
2635

2736
package() {
28-
npm install -g --prefix "${pkgdir}/usr" "${srcdir}/${pkgname%-git}"
37+
cd "${srcdir}/${pkgname%-git}"
38+
npm install -g --prefix "${pkgdir}/usr" $(npm pack)
2939

3040
# Non-deterministic race in npm gives 777 permissions to random directories.
3141
# See https://github.com/npm/cli/issues/1103 for details.
@@ -34,4 +44,6 @@ package() {
3444
# npm gives ownership of ALL FILES to build user
3545
# https://bugs.archlinux.org/task/63396
3646
chown -R root:root "${pkgdir}"
47+
48+
install -Dm0644 "${srcdir}/${pkgname%-git}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
3749
}
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
maintainers:
22
- github: taotieren
3-
4-
build_prefix: extra-x86_64
5-
63
pre_build: vcs_update
7-
84
post_build_script: |
95
git_pkgbuild_commit()
106
update_aur_repo()
11-
127
update_on:
138
- source: github
149
github: Mogztter/asciidoctor-web-pdf

0 commit comments

Comments
 (0)