mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
extra/p7zip: new aport
A command-line port of the 7zip compression utility http://p7zip.sourceforge.net
This commit is contained in:
parent
ed1b3209b6
commit
86402b2fe2
36
extra/p7zip/APKBUILD
Normal file
36
extra/p7zip/APKBUILD
Normal file
@ -0,0 +1,36 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=p7zip
|
||||
pkgver=4.65
|
||||
pkgrel=0
|
||||
pkgdesc="A command-line port of the 7zip compression utility"
|
||||
url="http://p7zip.sourceforge.net"
|
||||
license="GPL"
|
||||
subpackages="$pkgname-doc"
|
||||
depends="uclibc uclibc++ libgcc"
|
||||
makedepends="bash uclibc++-dev"
|
||||
#install=p7zip.install
|
||||
source="http://downloads.sourceforge.net/sourceforge/$pkgname/${pkgname}_${pkgver}_src_all.tar.bz2
|
||||
p7zip-cc-cxx.patch"
|
||||
|
||||
build ()
|
||||
{
|
||||
cd "$srcdir"/${pkgname}_${pkgver}
|
||||
patch -p1 -i ../p7zip-cc-cxx.patch || return 1
|
||||
sed -i "s|usr/local|usr|g" makefile
|
||||
export CXX=${UC_CXX:-g++-uc}
|
||||
|
||||
make all3 OPTFLAGS="${CXXFLAGS}" || return 1
|
||||
make install DEST_HOME="$pkgdir"/usr DEST_MAN="$pkgdir"/usr/share/man \
|
||||
DEST_SHARE_DOC="http://www.bugaco.com/7zip"
|
||||
|
||||
# echo "creating dir"
|
||||
# mkdir -p "$pkgdir"/usr/share/doc/p7zip/DOCS
|
||||
# install -m555 bin/7z.so "$pkgdir"/usr/lib/p7zip/
|
||||
sed -i "s|"$pkgdir"/usr|/usr|g" "$pkgdir"/usr/bin/7z
|
||||
sed -i "s|"$pkgdir"/usr|/usr|g" "$pkgdir"/usr/bin/7za
|
||||
sed -i "s|"$pkgdir"/usr|/usr|g" "$pkgdir"/usr/bin/7zr
|
||||
# install -m755 -D contrib/VirtualFileSystemForMidnightCommander/u7z "$pkgdir"/usr/share/mc/extfs/u7z
|
||||
}
|
||||
|
||||
md5sums="f78ed232436dc8f8be25a2f95d4e5f9a p7zip_4.65_src_all.tar.bz2
|
||||
8e8f415267bb5db179e4a8ed75985244 p7zip-cc-cxx.patch"
|
||||
22
extra/p7zip/p7zip-cc-cxx.patch
Normal file
22
extra/p7zip/p7zip-cc-cxx.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- a/makefile.machine 2009-05-29 07:24:22.000000000 +0000
|
||||
+++ b/makefile.machine 2009-05-29 07:25:22.000000000 +0000
|
||||
@@ -2,6 +2,8 @@
|
||||
# makefile for Linux (x86, PPC, alpha ...)
|
||||
#
|
||||
|
||||
+CXX ?= g++
|
||||
+CC ?= gcc
|
||||
OPTFLAGS=-O
|
||||
|
||||
ALLFLAGS=${OPTFLAGS} -s \
|
||||
@@ -9,8 +11,8 @@
|
||||
-DNDEBUG -D_REENTRANT -DENV_UNIX \
|
||||
$(LOCAL_FLAGS)
|
||||
|
||||
-CXX=g++ $(ALLFLAGS)
|
||||
-CC=gcc $(ALLFLAGS)
|
||||
+CXX += $(ALLFLAGS)
|
||||
+CC += $(ALLFLAGS)
|
||||
CC_SHARED=-fPIC
|
||||
LINK_SHARED=-fPIC -shared
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user