[aur-general] makepkg and unzip
stefan-husmann at t-online.de
stefan-husmann at t-online.de
Tue May 6 14:20:46 EDT 2008
Hello,
some Java programs follow the windows install method "put everything
into a directory", and the "Everything" is shipped via zipfile. So
sometimes it is easier to unzip (or unbsdtar) the whole bunch to
$startdir/pkg/somewhere rather than to $startdir/src/somewhere.
example (not yet in AUR)
# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
pkgname=jose-chess
pkgver=1.44
pkgrel=1
pkgdesc="Graphical chess tool and game"
url="http://jose-chess.sourceforge.net/"
arch=('i686')
license=('GPL')
install=jose.install
depends=('jre' 'mysql' 'libgl')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/jose-144-linux.zip)
md5sums=('c36ec11a2703a2fdc92106b33ac737e5')
noextract=('jose-144-linux.zip')
build() {
install -d $pkgdir/usr/share/ || return 1
cd $pkgdir/usr/share
unzip -qou $srcdir/jose-144-linux.zip || return 1
find $pkgdir/usr/share/jose -type f -exec chmod 664 {} \; || return 1
chmod 755 $pkgdir/usr/share/jose/jose.sh || return 1
find $pkgdir/usr/share/jose -type d -exec chmod 775 {} \; || return 1
}
-----Original Message-----
Date: Tue, 06 May 2008 18:28:17 +0200
Subject: Re: [aur-general] makepkg and unzip
From: Xavier
To: "Discussion about the Arch User Repository (AUR)"
Ray Rashif wrote:
> How about if we were to unzip something under build()? Are we supposed
to
> switch entirely to bsdtar then (use bsdtar in place of unzip
commands)?
>
Do you have an example, I am not sure how this could happen :)
Something like a zip archive inside the main source archive? Sounds
weird.
But well, I guess it makes sense to try using bsdtar first, since it is
in core/base. bsdtar is included in libarchive package which is a dep of
pacman, so it will be installed on every system. Not unzip though.
More information about the aur-general
mailing list