Mail archive
alpine-aports

Re: [alpine-aports] [PATCH] testing/pdftk: new aport

From: Natanael Copa <ncopa_at_alpinelinux.org>
Date: Fri, 19 Aug 2016 15:37:58 -0700

On Mon, 8 Aug 2016 05:13:57 +0000
Michael Koloberdin <koloberdin_at_gmail.com> wrote:

> ---
> testing/pdftk/APKBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++
> testing/pdftk/Makefile.Alpine | 20 +++++++++++++++++
> 2 files changed, 71 insertions(+)
> create mode 100644 testing/pdftk/APKBUILD
> create mode 100644 testing/pdftk/Makefile.Alpine
>
> diff --git a/testing/pdftk/APKBUILD b/testing/pdftk/APKBUILD
> new file mode 100644
> index 0000000..c61382e
> --- /dev/null
> +++ b/testing/pdftk/APKBUILD
> _at_@ -0,0 +1,51 @@
> +# Maintainer: Michael Koloberdin <koloberdin_at_gmail.com>
> +pkgname=pdftk
> +pkgver=2.02
> +pkgrel=0
> +pkgdesc="Pdftk is a simple tool for doing everyday things with PDF documents"
> +url="http://www.pdfhacks.com/pdftk"
> +arch="all"
> +license="GPL"
> +depends="libgcj"

you don't need explicitly add libgcj to depends. abuild will do this
for you:

>>> pdftk*: Tracing dependencies...
        libgcj
        so:libc.musl-x86_64.so.1
        so:libgcc_s.so.1
        so:libgcj.so.17
        so:libstdc++.so.6

as you see abuild will add a depend=so:libgcj.so.17. abuild will also
make sure that whatever package that has the libgcj.so.17 will also
have a provides=so:libgcj.so.17. That way we don't need to modify the
depend="libgcj" in pdftk if the library moves to another package.

In other words: abuild manages shared libraries and you don't specify
the depend.

I removed it for you.

I also converted the Makefile.Alpine to a heredoc.

Thanks!

-nc


---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Fri Aug 19 2016 - 15:37:58 GMT