[aur-general] How to deal with tarballs from GitHub

Phillip Smith lists at fukawi2.nl
Thu Sep 12 02:15:13 EDT 2013


Hi all,

When the source tarball is from a GitHub repository, part of the
commit SHA1 forms the first level of the extracted directory tree.
This leads to a non-deterministic tree in $srcdir

At the moment I deal with this by using noextract() and manually
extracting the tarball within build() using --strip-components=1 which
you can see in [1]. (Arguably it should perhaps happen in prepare()
but that's a separate discussion).

Does anyone have any better ways to deal with these tarballs?

Cheers,
~p

[1] https://aur.archlinux.org/packages/ss/sshfp/PKGBUILD


More information about the aur-general mailing list