-Amélioré fonctions de download des packages
[hvlinux.git] / stage5 / pkg / gnash
index d80ac37..971baa8 100644 (file)
@@ -1,31 +1,13 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name.
-# Remaining arguments are additional configure options.
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-PACKAGE=${1}
-shift
-CONFIGURE_OPTS=${*}
-
-# Applying patches (if any)
-apply_patches ${PACKAGE}
-
-cd ${LFS_TMP}/${PACKAGE}-build
-../${PACKAGE}/configure \
-    --prefix=/usr \
-    --sysconfdir=/etc \
-    --enable-gui=gtk \
-    ${CONFIGURE_OPTS}
-make
-make install
-ldconfig
-
-install -m 755 plugin/.libs/libgnashplugin.so /usr/lib/firefox/plugins
-
-exit $?
+#!/bin/bash
+
+hvconfig_pre()
+{
+    CONFIGURE_OPTS=" \
+        ${CONFIGURE_OPTS} \
+        --enable-gui=gtk"
+}
+
+hvconfig_post()
+{
+    install -m 755 plugin/.libs/libgnashplugin.so /usr/lib/firefox/plugins
+}