Mail archive
alpine-devel

Re: [alpine-devel] new ports: par2cmdline; py-cheetah, py-feedparser, py-yenc and pyopenssl

From: Natanael Copa <ncopa_at_alpinelinux.org>
Date: Thu, 6 Jan 2011 17:48:07 +0100

On Wed, 5 Jan 2011 22:21:53 +0100
lonkaji <lonkaji_at_gmail.com> wrote:

> From 636d4dcd41014c5b6e8e0f045cf810b455ed626b Mon Sep 17 00:00:00 2001
> From: Kalonji <lonkaji_at_gmail.com>
> Date: Wed, 5 Jan 2011 20:51:53 +0000
> Subject: [PATCH 2/6] new port: par2cmdline
>
> ---
> testing/par2cmdline/APKBUILD | 52 +++++
> testing/par2cmdline/par2cmdline-0.4-autoconf.patch | 22 ++
> testing/par2cmdline/par2cmdline-0.4-cosmetic.patch | 106 ++++++++++
> testing/par2cmdline/par2cmdline-0.4-gcc4.patch | 62 ++++++
> .../par2cmdline/par2cmdline-0.4-hardlinks.patch | 15 ++
> testing/par2cmdline/par2cmdline-0.4-letype.patch | 219
> ++++++++++++++++++++
> testing/par2cmdline/par2cmdline-0.4-offset.patch | 16
> ++ .../par2cmdline/par2cmdline-0.4-wildcard-fix.patch | 23 ++ 8
> files changed, 515 insertions(+), 0 deletions(-) create mode 100644
> testing/par2cmdline/APKBUILD create mode 100644
> testing/par2cmdline/par2cmdline-0.4-autoconf.patch create mode 100644
> testing/par2cmdline/par2cmdline-0.4-cosmetic.patch create mode 100644
> testing/par2cmdline/par2cmdline-0.4-gcc4.patch create mode 100644
> testing/par2cmdline/par2cmdline-0.4-hardlinks.patch create mode
> 100644 testing/par2cmdline/par2cmdline-0.4-letype.patch create mode
> 100644 testing/par2cmdline/par2cmdline-0.4-offset.patch create mode
> 100644 testing/par2cmdline/par2cmdline-0.4-wildcard-fix.patch
>
> diff --git a/testing/par2cmdline/APKBUILD
> b/testing/par2cmdline/APKBUILD new file mode 100644
> index 0000000..7c6cbb3
> --- /dev/null
> +++ b/testing/par2cmdline/APKBUILD
> _at_@ -0,0 +1,52 @@
> +# Contributor: <kalonji_at_gmail.com>
> +# Maintainer: <kalonji_at_gmail.com>
> +pkgname=par2cmdline
> +pkgver=0.4
> +pkgrel=1

Start with pkgrel=0 on first release.

> +pkgdesc="Providing a tool to apply the data-recovery capability
> concepts of RAID-like systems to the posting & recovery of multi-part
> archives on Usenet."

Would have been nice with a shorter pkgdesc.

> +url="http://sourceforge.net/projects/parchive/"
> +license="GPL"

arch="all"

was missing.

> +depends=
> +makedepends=
> +install=
> +source="http://downloads.sourceforge.net/sourceforge/parchive/${pkgname}-${pkgver}.tar.gz
> +par2cmdline-0.4-autoconf.patch
> +par2cmdline-0.4-letype.patch
> +par2cmdline-0.4-cosmetic.patch
> +par2cmdline-0.4-offset.patch
> +par2cmdline-0.4-gcc4.patch
> +par2cmdline-0.4-wildcard-fix.patch
> +par2cmdline-0.4-hardlinks.patch"
> +
> +_builddir="$srcdir"/$pkgname-$pkgver
> +
> +prepare() {
> + cd "$_builddir"
> + for i in "$srcdir"/*.patch; do
> + msg "Applying ${i}"
> + patch -N -i $i || return 1
> + done
> +}

Indentation is weird.

> +
> +build() {
> + cd "$_builddir"
> + ./configure --prefix=/usr \
> + --sysconfdir=/etc \
> + --mandir=/usr/share/man \
> + --infodir=/usr/share/info
> + make || return 1

indentation...

> +}
> +
> +package() {
> + cd "$_builddir"
> + make DESTDIR="$pkgdir" install

also here


I applied and fixed the above. (except for pkgrel)

Thanks!

-nc


---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Thu Jan 06 2011 - 17:48:07 UTC