summaryrefslogtreecommitdiff
path: root/system/acpi/acpi.SlackBuild
diff options
context:
space:
mode:
authorGrigorios Bouzakis <grbzks@gmail.com>2010-04-18 22:17:19 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-15 10:38:25 +0200
commit4d9301d0901860d6cb557f0b9bfaa91a4275cb56 (patch)
tree5ec79425a80afdeddced56132eac2b624c787d30 /system/acpi/acpi.SlackBuild
parentcba4b9f3b79bd2897881969001a1756a852d2e27 (diff)
downloadslackbuilds-4d9301d0901860d6cb557f0b9bfaa91a4275cb56.tar.gz
system/acpi: Updated for version 1.5.
Diffstat (limited to 'system/acpi/acpi.SlackBuild')
-rw-r--r--system/acpi/acpi.SlackBuild36
1 files changed, 24 insertions, 12 deletions
diff --git a/system/acpi/acpi.SlackBuild b/system/acpi/acpi.SlackBuild
index 6ae1a184ce..8399f0cf94 100644
--- a/system/acpi/acpi.SlackBuild
+++ b/system/acpi/acpi.SlackBuild
@@ -1,11 +1,26 @@
#!/bin/sh
-
# Slackware build script for acpi
-# Written by Grigorios Bouzakis (grbzks@gmail.com)
+# Copyright 2008-2010 Grigorios Bouzakis <grbzks@xsmail.com>
+# All rights reserved.
+#
+# Permission to use, copy, modify, and distribute this software for any purpose
+# with or without fee is hereby granted, provided that the above copyright
+# notice and this permission notice appear in all copies.
+#
+# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+# AUTHORS AND COPYRIGHT HOLDERS AND THEIR CONTRIBUTORS BE LIABLE FOR ANY
+# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=acpi
-VERSION=${VERSION:-1.4}
+VERSION=${VERSION:-1.5}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -26,6 +41,8 @@ elif [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
fi
+DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README"
+
set -e
rm -rf $PKG
@@ -49,17 +66,14 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null
-)
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
@@ -67,9 +81,7 @@ make install DESTDIR=$PKG
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS COPYING ChangeLog INSTALL NEWS README \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install