You are not logged in.
Here is my draft PKGBUILD for libarchive-git:
# Maintainer: graysky <graysky AT arcnlinux DOT us>
pkgname=libarchive-git
pkgver=20120804
pkgrel=1
pkgdesc="Library that can create and read several streaming archive formats. Git version."
arch=('i686' 'x86_64')
url="http://libarchive.googlecode.com/"
license=('BSD')
depends=('zlib' 'bzip2' 'xz>=5.0.0' 'acl' 'openssl>=1.0.0' 'expat' 'lrzip')
makedepends=('git')
provides=('libarchive')
conflicts=('libarchive')
_gitroot=https://github.com/libarchive/libarchive.git
_gitname=libarchive
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [[ -d "$_gitname" ]]; then
cd "$_gitname" && git pull origin
msg "The local files are updated."
else
git clone "$_gitroot" "$_gitname"
fi
msg "GIT checkout done or server timeout"
msg "Starting build..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
./build/autogen.sh
./configure --prefix=/usr --without-xml2
make
}
package() {
cd "$srcdir/$_gitname-build"
make DESTDIR="$pkgdir" install
install -D -m644 COPYING "$pkgdir"/usr/share/licenses/libarchive/COPYING
}
# vim:set ts=2 sw=2 et:
My build dies at the make step in the build function. Build log on pastebin. Love to hear suggestions from more advanced users.
Thanks!
EDIT: tried adding a --disable-acl to the configure step which does get further but still dies in errors:
./.libs/libarchive.a(archive_write_disk_posix.o): In function `_archive_write_disk_finish_entry':
archive_write_disk_posix.c:(.text+0xfec): undefined reference to `archive_write_disk_set_acls'
./.libs/libarchive.a(archive_write_disk_posix.o): In function `_archive_write_disk_close':
archive_write_disk_posix.c:(.text+0x273a): undefined reference to `archive_write_disk_set_acls'
collect2: error: ld returned 1 exit status
./.libs/libarchive.a(archive_write_disk_posix.o): In function `_archive_write_disk_finish_entry':
archive_write_disk_posix.c:(.text+0xfec): undefined reference to `archive_write_disk_set_acls'
./.libs/libarchive.a(archive_write_disk_posix.o): In function `_archive_write_disk_close':
archive_write_disk_posix.c:(.text+0x273a): undefined reference to `archive_write_disk_set_acls'
collect2: error: ld returned 1 exit status
make[1]: *** [bsdcpio] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [bsdtar] Error 1
make[1]: Leaving directory `/scratch/src/libarchive-build'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Last edited by graysky (2012-08-05 19:46:29)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
OK... upstream fixed. https://groups.google.com/forum/#!topic … b_qTv6JEuo
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline