mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/httrack: new aport
Website Copier - Free Software Offline Browser http://www.httrack.com/ [TT: modernize]
This commit is contained in:
parent
87d740c28e
commit
ce9cd35228
37
testing/httrack/APKBUILD
Normal file
37
testing/httrack/APKBUILD
Normal file
@ -0,0 +1,37 @@
|
||||
# Contributor: <xmingske@gmail.com>
|
||||
# Contributor: Arch3y <arch3y@riseup.net>
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=httrack
|
||||
pkgver=3.49.2
|
||||
pkgrel=0
|
||||
pkgdesc="Website Copier - Free Software Offline Browser"
|
||||
url="http://www.httrack.com/"
|
||||
arch="all"
|
||||
license="GPL3"
|
||||
makedepends="zlib-dev openssl-dev libtool"
|
||||
source="http://mirror.httrack.com/historical/${pkgname}-${pkgver}.tar.gz"
|
||||
subpackages="$pkgname-doc"
|
||||
builddir="$srcdir/$pkgname-$pkgver"
|
||||
options="!check"
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--mandir=/usr/share/man \
|
||||
--infodir=/usr/share/info \
|
||||
--disable-static \
|
||||
--disable-dependency-tracking \
|
||||
--localstatedir=/var/lib \
|
||||
--docdir=/usr/share/doc/httrack
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$builddir"
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
sha512sums="84a13a776b278533f7f0635ebd764387c3399b01c0644d8af9b46fc8112dc3c6e568c17969d4f6c2db32b5474344c39f86cf51957c09eb807ebe305a554ba5c8 httrack-3.49.2.tar.gz"
|
||||
@ -1,55 +0,0 @@
|
||||
# Contributor: <xmingske@gmail.com>
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=httrack
|
||||
pkgver=3.48.19
|
||||
pkgrel=0
|
||||
pkgdesc="Website Copier - Free Software Offline Browser"
|
||||
url="http://www.httrack.com/"
|
||||
arch="all"
|
||||
license="GPL3"
|
||||
depends=""
|
||||
makedepends="zlib-dev openssl-dev"
|
||||
source="http://mirror.httrack.com/${pkgname}-${pkgver}.tar.gz
|
||||
compile_fix.patch
|
||||
"
|
||||
subpackages="$pkgname-doc"
|
||||
|
||||
_builddir="${srcdir}"/${pkgname}-${pkgver}
|
||||
|
||||
prepare() {
|
||||
local pf
|
||||
cd "${_builddir}"
|
||||
for pf in $source; do
|
||||
case $pf in
|
||||
*.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${_builddir}"
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--mandir=/usr/share/man \
|
||||
--infodir=/usr/share/info \
|
||||
--disable-static \
|
||||
--disable-dependency-tracking \
|
||||
--localstatedir=/var/lib \
|
||||
--docdir=/usr/share/doc/httrack \
|
||||
|| return 1
|
||||
make || return 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${_builddir}"
|
||||
make DESTDIR="${pkgdir}" install || return 1
|
||||
}
|
||||
|
||||
md5sums="db07a1a3e41eff1123606c444f8f267d httrack-3.48.19.tar.gz
|
||||
df5a7d5cc9be56a08a6c362152256f2b compile_fix.patch"
|
||||
sha256sums="16f0cd0ea21042106879238fe4892b56018e106347d69dcb0b93816ee8f68afe httrack-3.48.19.tar.gz
|
||||
4bd329ae0c07bcc7905fd56c9da9b04876130e5d521a64ad43c961f87944aab6 compile_fix.patch"
|
||||
sha512sums="c7202c4d86963fe935ce1f1a81f43f47544e03e4743528f52acd541ba87d6ef47d9e691b432f9bebedbf06e764bd67fe85748762b6ec3c09491b7528957cda8b httrack-3.48.19.tar.gz
|
||||
41534bac32d0f3b94a862d1fe94726dc41407b8fccdf42d8755522b47c8975860f25e5c0c6150900faee3c9b7f1b19fdaa2167c9f4f2f7d63a1a62df29ce36ed compile_fix.patch"
|
||||
@ -1,22 +0,0 @@
|
||||
--- a/src/httrack.c
|
||||
+++ b/src/httrack.c
|
||||
@@ -69,7 +69,8 @@
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <ctype.h>
|
||||
-#ifdef __linux
|
||||
+//#ifdef __linux
|
||||
+#ifdef __GLIBC__
|
||||
#include <execinfo.h>
|
||||
#endif
|
||||
/* END specific definitions */
|
||||
@@ -878,7 +879,8 @@
|
||||
#define FD_ERR 2
|
||||
|
||||
static void print_backtrace(void) {
|
||||
-#ifdef __linux
|
||||
+//#ifdef __linux
|
||||
+#ifdef __GLIBC__
|
||||
void *stack[256];
|
||||
const int size = backtrace(stack, sizeof(stack)/sizeof(stack[0]));
|
||||
if (size != 0) {
|
||||
Loading…
x
Reference in New Issue
Block a user