summaryrefslogtreecommitdiff
path: root/pcr/httrack
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-02-28 18:55:36 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-02-28 18:56:05 -0200
commit03c977c3ee5b24cf731e1e68202e3350c5c5f203 (patch)
tree4a35cf9b9cfc248a6df72ef32b694e863f48d094 /pcr/httrack
parent68648e65f0be5f6da08570789ecbb877819c6e61 (diff)
downloadabslibre-03c977c3ee5b24cf731e1e68202e3350c5c5f203.tar.gz
abslibre-03c977c3ee5b24cf731e1e68202e3350c5c5f203.tar.bz2
abslibre-03c977c3ee5b24cf731e1e68202e3350c5c5f203.zip
httrack: add new package to [pcr]
Diffstat (limited to 'pcr/httrack')
-rw-r--r--pcr/httrack/PKGBUILD35
-rw-r--r--pcr/httrack/httrack.install12
2 files changed, 47 insertions, 0 deletions
diff --git a/pcr/httrack/PKGBUILD b/pcr/httrack/PKGBUILD
new file mode 100644
index 000000000..4d40153ef
--- /dev/null
+++ b/pcr/httrack/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer : Marcos Heredia <chelqo@gmail.com>
+# Contributor: Joris Steyn <jorissteyn@gmail.com>
+# Contributor: speps <speps at aur dot archlinux dot org>
+# Contributor: Roman Kyrylych <roman@archlinux.org>
+# Contributor: orelien <aurelien.foret@wanadoo.fr>
+
+pkgname=httrack
+pkgver=3.47.27
+pkgrel=1
+pkgdesc="An easy-to-use offline browser utility."
+arch=('i686' 'x86_64')
+url="http://www.httrack.com/"
+license=('GPL3')
+depends=('bash' 'xdg-utils' 'hicolor-icon-theme' 'openssl')
+options=('!libtool')
+install="$pkgname.install"
+source=("http://download.httrack.com/$pkgname-$pkgver.tar.gz")
+md5sums=('60a47cbda7775fdbe21802061a9ed47a')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr --enable-static=no
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+ _docdir=${pkgdir}/usr/share/doc/${pkgname}
+ _licdir=${pkgdir}/usr/share/licenses/${pkgname}
+ install -dpm755 ${_docdir} ${_licdir}
+ install -Dpm644 AUTHORS INSTALL* README ${_docdir}/
+ install -Dpm644 COPYING license.txt ${_licdir}/
+}
+
diff --git a/pcr/httrack/httrack.install b/pcr/httrack/httrack.install
new file mode 100644
index 000000000..029294d67
--- /dev/null
+++ b/pcr/httrack/httrack.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}