CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Replaced hardcoded name with
[ports/cubox-arm.git] / marvell-libbmm / Pkgfile
index bf7e7f0a7034750b89093e0d93b825e8661aa028..559fd12bc29ac9dcadcb54b492abf810730f98da 100644 (file)
@@ -2,7 +2,6 @@
 # URL: http://www.solid-run.com/mw/index.php/Main_Page
 # Packager: Ryan Mullen, rmmullen at gmail dot com
 # Maintainer: Ryan Mullen, rmmullen at gmail dot com
-# Depends on:
 
 name=marvell-libbmm
 version=0.2.0
@@ -14,18 +13,19 @@ build() {
     # Adapted from Arch ALARM marvell-libbmm
 
     cd packages/bmm-lib
-    tar xf marvell-libbmm_$version-0ubuntu1~ppa8.tar.gz
+    tar xf $name_$version-0ubuntu1~ppa8.tar.gz
     cd lib
     
     make -j1 -f Makefile_general
 
     mkdir -p $PKG/usr/lib
        mkdir $PKG/usr/include
+    mkdir -p $PKG/etc/udev/rules.d
 
     install -Dm755 libbmm.so.0u.1 $PKG/usr/lib/libbmm.so.0u.1
     install -Dm644 bmm_lib.h $PKG/usr/include/bmm_lib.h
     install -Dm644 etc/udev/rules.d/99-bmm.rules \
-        $PKG/usr/lib/udev/rules.d/99-bmm.rules
+        $PKG/etc/udev/rules.d/99-bmm.rules
 
     ln -s /usr/lib/libbmm.so.0u.1 $PKG/usr/lib/libbmm.so.0u
     ln -s /usr/lib/libbmm.so.0u.1 $PKG/usr/lib/libbmm.so