|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/bash |
|
|
|
# Build script for Slackware |
|
|
|
# Copyright (C) 2010,2011,2016 Damien Goutte-Gattat |
|
|
|
# Copyright (C) 2010,2011,2016,2019 Damien Goutte-Gattat |
|
|
|
# |
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
# is permitted provided that the following conditions are met: |
|
|
@ -22,11 +22,11 @@ |
|
|
|
# |
|
|
|
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org> |
|
|
|
# |
|
|
|
# Latest xclip sourcecode is available at: <http://xclip.sourceforge.net/>. |
|
|
|
# Latest xclip sourcecode is available at: <https://github.com/astrand/xclip>. |
|
|
|
|
|
|
|
# Source package infos |
|
|
|
NAMESRC=${NAMESRC:-xclip} |
|
|
|
VERSION=${VERSION:-0.12} |
|
|
|
VERSION=${VERSION:-0.13} |
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
WGET=${WGET:-https://github.com/astrand/xclip/archive/$VERSION.tar.gz} |
|
|
|
|
|
|
@ -73,7 +73,7 @@ if [ ! -r $ARCHIVE ]; then |
|
|
|
wget -c -O $ARCHIVE.part "$WGET" |
|
|
|
mv $ARCHIVE.part $ARCHIVE |
|
|
|
fi |
|
|
|
sha1sum -c $ARCHIVE.sha1 |
|
|
|
sha256sum -c $ARCHIVE.sha256 |
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) |
|
|
|
|
|
|
|
# Compile |
|
|
@ -81,6 +81,7 @@ cd $TMP |
|
|
|
echo "Building $ARCHIVE..." |
|
|
|
tar xf $CWD/$ARCHIVE |
|
|
|
cd $NAME |
|
|
|
./bootstrap |
|
|
|
CFLAGS=$CPUOPT \ |
|
|
|
CXXFLAGS=$CPUOPT \ |
|
|
|
./configure \ |
|
|
|