summaryrefslogtreecommitdiff
path: root/multimedia/glyr/glyr.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/glyr/glyr.SlackBuild')
-rw-r--r--multimedia/glyr/glyr.SlackBuild37
1 files changed, 27 insertions, 10 deletions
diff --git a/multimedia/glyr/glyr.SlackBuild b/multimedia/glyr/glyr.SlackBuild
index 264711b968..a9e51c8065 100644
--- a/multimedia/glyr/glyr.SlackBuild
+++ b/multimedia/glyr/glyr.SlackBuild
@@ -22,14 +22,24 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Now maintained by B. Watson <yalhcru@gmail.com>
+
+# 20160817 bkw:
+# - take over maintenance
+# - update for 1.0.9
+# - i486 => i586
+# - fix SLKCFLAGS use
+# - add missing docs
+# - make install/strip
+
PRGNAM=glyr
-VERSION=${VERSION:-1.0.8}
+VERSION=${VERSION:-1.0.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +50,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -76,6 +86,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# upstream places -Os after the flags we provide, which undoes our -O2.
+sed -i "s,-Os,," CMakeLists.txt
+
mkdir -p build
cd build
cmake \
@@ -84,15 +97,19 @@ cd build
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DCMAKE_BUILD_TYPE=Release ..
- make
- make install DESTDIR=$PKG
+ make #VERBOSE=1 # in case you need to see the compile commands
+ make install/strip DESTDIR=$PKG
cd ..
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
+# README.html was generated from upstream's README.textile. include
+# pre-generated html file in build to avoid a dependency on
+# Formatter::HTML::Textile perl module. I could have generated plain
+# text, but the URLs don't show up in it. I didn't build the API
+# docs, but README.html has a link to them on the author's site.
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS CHANGELOG COPYING $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS CHANGELOG COPYING state_of_providers.txt \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/README.html > $PKG/usr/doc/$PRGNAM-$VERSION/README.html
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install