Package Details: trang 20220510-1

Git Clone URL: https://aur.archlinux.org/trang.git (read-only, click to copy)
Package Base: trang
Description: Converts between different schema languages for XML
Upstream URL: https://github.com/relaxng/jing-trang
Licenses: custom
Submitter: ShadowKyogre
Maintainer: bertptrs
Last Packager: bertptrs
Votes: 5
Popularity: 0.000000
First Submitted: 2015-08-13 18:31 (UTC)
Last Updated: 2022-05-10 20:36 (UTC)

Dependencies (2)

Required by (0)

Sources (3)

Latest Comments

archi42 commented on 2020-04-14 11:39 (UTC) (edited on 2020-04-14 12:14 (UTC) by archi42)

Verifying the signature file with the signing key fails (sha1sums are fine though):

==> Validating source files with sha1sums...
    trang-20181222.zip ... Passed
    trang-20181222.zip.asc ... Skipped
    trang ... Passed
==> Verifying source file signatures with gpg...
    trang-20181222.zip ... FAILED (unknown public key 87D17477BC3A4B95)
==> ERROR: One or more PGP signatures could not be verified!

sha1 of the signature file for me:

37b2ee537f676ffa1068d80aaba362f099a1494e  trang-20181222.zip.asc

(This is on Manjaro, but tested on my Arch machine, and there it happens as well).

mephinet commented on 2017-01-17 20:10 (UTC)

I tried to build this with openjdk version "1.8.0_112", which fails with: [javac] .../trang/src/jing-trang-20131210/build/mod/rng-parse/gensrc/main/com/thaiopensource/relaxng/parse/compact/CompactSyntax.java:1590: error: incompatible types: Annotations cannot be converted to AnnotationsImpl [javac] a = IncludeBody(include, scope, a); [javac] ^ [javac] where AnnotationsImpl,Location,ElementAnnotation,CommentListImpl are type-variables: [javac] AnnotationsImpl extends Annotations<Location,ElementAnnotation,CommentListImpl> declared in class CompactSyntax [javac] Location extends Object declared in class CompactSyntax [javac] ElementAnnotation extends Object declared in class CompactSyntax [javac] CommentListImpl extends CommentList<Location> declared in class CompactSyntax The issue is known (https://aur.archlinux.org/trang.git) and a patch is available (https://github.com/relaxng/jing-trang/issues/182#issuecomment-90583555) - it would be great if you could apply this patch to your PKGBUILD: diff --git a/PKGBUILD b/PKGBUILD index bf637cf..69b0983 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -13,8 +13,14 @@ depends=(java-runtime-headless) source=( "${pkgname}-${pkgver}.tar.gz::https://github.com/relaxng/${_pkgname}/archive/V${pkgver}.tar.gz" trang + https://storage.googleapis.com/google-code-attachments/jing-trang/issue-182/comment-1/jing-trang-20131210-java8.patch ) +prepare() { + cd "${srcdir}/${_pkgname}-${pkgver}" + patch -Np1 -i "${srcdir}/jing-trang-20131210-java8.patch" +} + build() { cd "$srcdir/${_pkgname}-${pkgver}" ./ant @@ -29,4 +35,6 @@ package() { } sha256sums=('4cedef9de8d15f1bb5aa01620ffb1f9d55ab877419167c3a7b25b3caa8caad9d' - '1641a4fa0578ddec1afb374a5da75be6816e659f60c98207619f656cb90ca135') + '1641a4fa0578ddec1afb374a5da75be6816e659f60c98207619f656cb90ca135' + '880692dc2cf926fb1cb96a68008b11c73f5ebd422fffc8995c9a7526f8ba5767' + )

piater commented on 2016-07-25 19:34 (UTC)

Thanks for packaging this. I was actually hunting for jing, and found a working install here. Thus my suggestions: - Could you make it explicit (in the description, and ideally also by renaming this package to jing-trang) that this package also provides jing? - Could you add the jing equivalent of the trang launcher script? - It did not compile for me because of a missing javac. makedepends=(java-environment) fixed it. - Any reason why not arch=('any')?

ShadowKyogre commented on 2016-04-04 19:51 (UTC)

@unhammer: Updated to a more recent release and used the nicer runner! Thanks a bunch!

unhammer commented on 2016-04-04 18:35 (UTC)

Also seems there's been later releases: https://github.com/relaxng/jing-trang/releases

unhammer commented on 2016-04-04 18:32 (UTC)

debian has a nice runner like http://sprunge.us/hZdj in /usr/bin/trang, maybe that could be included?

pdxleif commented on 2015-10-08 04:34 (UTC)

Also "java-runtime-headless" is enough of a requirement; no need to list java-environment AND java-runtime.

pdxleif commented on 2015-10-08 04:32 (UTC)

The PKGBUILD needs to be updated. Specifically, it's missing a package() function. And "|| return 1" hasn't been needed for quite some time.