X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 855D3DC024A for ; Wed, 4 Nov 2015 09:58:37 +0000 (UTC) Received: from newmail.tetrasec.net (unknown [74.117.189.116]) by mail.alpinelinux.org (Postfix) with ESMTP id 6602FDC01B9 for ; Wed, 4 Nov 2015 09:58:37 +0000 (UTC) Received: from ncopa-desktop.alpinelinux.org (unknown [79.160.13.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by newmail.tetrasec.net (Postfix) with ESMTPSA id ABC955A01B6; Wed, 4 Nov 2015 09:48:03 +0000 (GMT) Date: Wed, 4 Nov 2015 10:58:34 +0100 From: Natanael Copa To: Valery Kartel Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] testing/perl-font-ttf: new aport Message-ID: <20151104105834.24b0b592@ncopa-desktop.alpinelinux.org> In-Reply-To: <1446554114-10679-1-git-send-email-valery.kartel@gmail.com> References: <1446554114-10679-1-git-send-email-valery.kartel@gmail.com> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; x86_64-alpine-linux-musl) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP On Tue, 3 Nov 2015 14:35:14 +0200 Valery Kartel wrote: > --- > testing/perl-font-ttf/APKBUILD | 43 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 43 insertions(+) > create mode 100644 testing/perl-font-ttf/APKBUILD I see this when building and it does not look right: ... Installing /home/ncopa/aports/testing/perl-font-ttf/pkg/perl-font-ttf/usr/share/man/man3/Font::TTF::Hhea.3pm find: unrecognized: ttfmod.pl BusyBox v1.24.1 (2015-11-03 08:19:52 GMT) multi-call binary. Usage: find [-HL] [PATH]... [OPTIONS] [ACTIONS] Search for files and perform actions on them. First failed action stops processing of current file. Defaults: PATH is current directory, action is '-print' -L,-follow Follow symlinks -H ...on command line only -xdev Don't descend directories on other filesystems -maxdepth N Descend at most N levels. -maxdepth 0 applies actions to command line arguments only -mindepth N Don't act on first N levels -depth Act on directory *after* traversing it Actions: ( ACTIONS ) Group actions for -o / -a ! ACT Invert ACT's success/failure ACT1 [-a] ACT2 If ACT1 fails, stop, else do ACT2 ACT1 -o ACT2 If ACT1 succeeds, stop, else do ACT2 Note: -a has higher priority than -o -name PATTERN Match file name (w/o directory name) to PATTERN -iname PATTERN Case insensitive -name -path PATTERN Match path to PATTERN -ipath PATTERN Case insensitive -path -regex PATTERN Match path to regex PATTERN -type X File type is X (one of: f,d,l,b,c,...) -perm MASK At least one mask bit (+MASK), all bits (-MASK), or exactly MASK bits are set in file's mode -mtime DAYS mtime is greater than (+N), less than (-N), or exactly N days in the past -mmin MINS mtime is greater than (+N), less than (-N), or exactly N minutes in the past -newer FILE mtime is more recent than FILE's -inum N File has inode number N -user NAME/ID File is owned by given user -group NAME/ID File is owned by given group -size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.)) +/-N: file size is bigger/smaller than N -links N Number of links is greater than (+N), less than (-N), or exactly N -prune If current file is directory, don't descend into it If none of the following actions is specified, -print is assumed -print Print file name -print0 Print file name, NUL terminated -exec CMD ARG ; Run CMD with all instances of {} replaced by file name. Fails if CMD exits with nonzero -exec CMD ARG + Run CMD with {} replaced by list of file names -delete Delete current file/directory. Turns on -depth option >>> perl-font-ttf*: Running split function doc... >>> perl-font-ttf-doc*: Preparing subpackage perl-font-ttf-doc... I think something goes wrong but it does not halt (maybe a missing || return 1?) > diff --git a/testing/perl-font-ttf/APKBUILD b/testing/perl-font-ttf/APKBUILD > new file mode 100644 > index 0000000..0d62e52 > --- /dev/null > +++ b/testing/perl-font-ttf/APKBUILD > @@ -0,0 +1,43 @@ > +# Automatically generated by apkbuild-cpan, template 1 > +# Contributor: Valery Kartel > +# Maintainer: Valery Kartel > +pkgname=perl-font-ttf > +_pkgreal=Font-TTF > +pkgver=1.05 > +pkgrel=0 > +pkgdesc="TTF font support for Perl" > +url="http://search.cpan.org/dist/Font-TTF/" > +arch="noarch" > +license="Artistic-2" > +cpandepends="perl-io-string" > +cpanmakedepends=" " > +depends="$cpandepends" > +makedepends="perl-dev $cpanmakedepends" > +subpackages="$pkgname-doc" > +source="http://search.cpan.org/CPAN/authors/id/M/MH/MHOSKEN/$_pkgreal-$pkgver.tar.gz" > + > +_builddir="$srcdir/$_pkgreal-$pkgver" > + > +prepare() { > + cd "$_builddir" > + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` > + PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor > +} > + > +build() { > + cd "$_builddir" > + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` > + make && make test > +} > + > +package() { > + cd "$_builddir" > + make DESTDIR="$pkgdir" install || return 1 > + find "$pkgdir" \( -name *.txt -o -name *.pod -o -name .packlist -o ttfmod.pl \) -delete My guess is that it should be: .... -o -name ttfmod.pl ... || return 1 > + mv "$pkgdir"/usr/share/perl5/vendor_perl/* "$pkgdir"/usr/lib/perl5/vendor_perl > + rm -fr "$pkgdir"/usr/share/perl5 > +} > + > +md5sums="a9d0acf4cb9ebaee875d71732b83dfe5 Font-TTF-1.05.tar.gz" > +sha256sums="26c48e4e76e00f0ac00766b3cfba79f0cb8cbf005b7a39033f0e8e0d9eeafb50 Font-TTF-1.05.tar.gz" > +sha512sums="7288a2de63fc92c36f3706f365b2ea886e37361b13400a14f940961b0263f6492b02f73048c653bdcd5c5d1bb714977f3c5326b7217dcf3683b16d5048cd1e63 Font-TTF-1.05.tar.gz" -nc --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---