]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
libdv: now applying debian patches
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Fri, 6 Oct 2006 12:32:02 +0000 (12:32 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Fri, 6 Oct 2006 12:32:02 +0000 (12:32 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@354 370017ae-e619-0410-ac65-c121f96126d4

libdv/libdv.SlackBuild

index abedcdb82d4466b4a3543ff12652907026064f26..83515e025cab68ac0d46fa7aff005cbe77bac531 100755 (executable)
@@ -74,6 +74,13 @@ if [ -f "$CWD/$PACKAGE-$VERSION.diff" ]; then
   patch -p1 < $CWD/$PACKAGE-$VERSION.diff
 fi
 
+# apply debian patches, if exist
+if [ -d "debian/patches" ]; then
+  for file in `ls debian/patches/*patch`; do
+    patch -p1 < $file
+  done
+fi
+
 ./configure --prefix=/usr --sysconfdir=/etc --libdir=$LIBDIR
 make
 make DESTDIR=$TMP/package-$PACKAGE install
@@ -81,7 +88,6 @@ make DESTDIR=$TMP/package-$PACKAGE install
 CWD="`pwd`"
 cd $TMP/package-$PACKAGE
 
-
 find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
 find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null