milis/talimatname/temel/libarchive/talimat

48 lines
1.5 KiB
Plaintext
Raw Normal View History

2017-07-15 01:57:34 +02:00
# Description: Library that can create and read several streaming archive formats.
2016-02-24 01:27:23 +01:00
# URL: http://people.freebsd.org/~kientzle/libarchive
2017-07-15 01:57:34 +02:00
# Maintainer: kientzle at acm dot org
# Packager: tnuttens at gmail dot com
2016-02-24 01:27:23 +01:00
name=libarchive
2017-07-15 01:57:34 +02:00
version=3.1.2
2016-02-24 01:27:23 +01:00
release=1
source=(http://www.libarchive.org/downloads/libarchive-$version.tar.gz
2017-07-15 01:57:34 +02:00
http://downloads.nutyx.org/files/patchs/$name/$name-$version-mtree-fix-line-filename-length-calculation-01.patch
http://downloads.nutyx.org/files/patchs/$name/$name-$version-limit-write-requests-to-at-most-INT_MAX-01.patch
http://downloads.nutyx.org/files/patchs/$name/$name-$version-acl-01.patch
http://downloads.nutyx.org/files/patchs/$name/$name-$version-sparce-mtree-01.patch
2016-02-24 01:27:23 +01:00
)
build() {
2017-07-15 01:57:34 +02:00
cd $name-$version
patch -Np1 -i ../$name-$version-mtree-fix-line-filename-length-calculation-01.patch
patch -Np1 -i ../$name-$version-limit-write-requests-to-at-most-INT_MAX-01.patch
patch -Np1 -i ../$name-$version-acl-01.patch
patch -Np1 -i ../$name-$version-sparce-mtree-01.patch
./configure --prefix=/usr \
--mandir=/usr/share/man \
--bindir=/bin \
--without-xml2 \
--infodir=/usr/share/info
make
make DESTDIR=$PKG install
mkdir $PKG/lib
mv $PKG/usr/lib/libarchive.so.13.1.2 \
$PKG/lib/
for LIB in libarchive.so{,.13}
do
ln -sv libarchive.so.13.1.2 $PKG/lib/$LIB
rm $PKG/usr/lib/$LIB
ln -sv ../../lib/libarchive.so.13.1.2 \
$PKG/usr/lib/$LIB
done
ln -sv ../../lib/libarchive.so.13.1.2 \
$PKG/usr/lib/libarchive.so.13.1.2
2016-02-24 01:27:23 +01:00
2017-07-14 14:58:24 +02:00
}