-Amélioré fonctions de download des packages
[hvlinux.git] / stage5 / pkg / xvidcore
index 841455e..987d97c 100644 (file)
@@ -1,23 +1,15 @@
-#!/bin/sh
-set -o errexit
-
-# First argument of this script is the package name
-
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
-
-# Applying patches (if any)
-apply_patches ${1}
-
-cd ${LFS_TMP}/${1}/build/generic
-./configure \
-    --prefix=/usr
-make 
-make install
-ln -sf libxvidcore.so.4.0 /usr/lib/libxvidcore.so.4
-ln -sf libxvidcore.so.4 /usr/lib/libxvidcore.so
-ldconfig
-
-exit $?
+#!/bin/bash
+
+hvconfig()
+{
+    cd ${LFS_TMP}/${PACKAGE}/build/generic
+    ./configure \
+        --prefix=/usr
+}
+
+hvbuild_post()
+{
+    chmod -v 755 /usr/lib/libxvidcore.so.4.2
+    ln -v -sf libxvidcore.so.4.2 /usr/lib/libxvidcore.so.4
+    ln -v -sf libxvidcore.so.4   /usr/lib/libxvidcore.so
+}