-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
115 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
#!/bin/sh | ||
# | ||
# Slackware build script for sk1libs | ||
# | ||
# Copyright 2015 Corrado Franco (http://conraid.net) | ||
# All rights reserved. | ||
# | ||
# Redistribution and use of this script, with or without modification, is | ||
# permitted provided that the following conditions are met: | ||
# | ||
# 1. Redistributions of this script must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS 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 AUTHOR 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. | ||
# | ||
# Latest version of this SlackBuild at http://slackers.it/repository | ||
|
||
# Exit on most errors | ||
set -eu | ||
|
||
# Set variables: | ||
CWD=$(pwd) | ||
|
||
PRGNAME=${PRGNAME:-sk1libs} | ||
PKGNAME=$(echo ${PRGNAME} | tr A-Z a-z) | ||
VERSION=${VERSION:-0.9.1} | ||
PKGVERSION=${VERSION//-/_} | ||
BUILD=${BUILD:-1} | ||
TAG=${TAG:-cf} | ||
TMP=${TMP:-/tmp/pkg} | ||
PKG=${TMP}/package-${PKGNAME} | ||
PKGDOCDIR="${PKG}/usr/doc/${PKGNAME}-${PKGVERSION}" | ||
|
||
# Insert document files in this variable | ||
DOCFILES="COPYRIGHTS GNU* MANIFEST* README" | ||
|
||
# Automatically determine the architecture we're building on: | ||
if [ -z ${ARCH:=""} ]; then | ||
case "$( uname -m )" in | ||
i?86) ARCH=i686 ;; | ||
arm*) ARCH=arm ;; | ||
# Unless ${ARCH} is already set, use uname -m for all other archs: | ||
*) ARCH=$( uname -m ) ;; | ||
esac | ||
fi | ||
|
||
# Extract source and prepare: | ||
rm -rf ${PKG} | ||
mkdir -p ${TMP} ${PKG} | ||
cd ${TMP} | ||
rm -rf ${PRGNAME}-${VERSION} | ||
tar xvf ${CWD}/${PRGNAME}-${VERSION}.tar.gz | ||
cd ${PRGNAME}-${VERSION} | ||
|
||
# Make sure ownerships and permissions are sane: | ||
chown -R root:root . | ||
chmod -R u+w,go+r-w,a-s . | ||
|
||
# Build and install: | ||
python setup.py install --root=${PKG} | ||
|
||
# Strip binaries: | ||
find ${PKG} | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs -r strip --strip-unneeded 2> /dev/null || true | ||
find ${PKG} | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs -r strip -g 2> /dev/null || true | ||
|
||
# Add a documentation directory: | ||
mkdir -p ${PKGDOCDIR} | ||
cp -a ${DOCFILES} ${PKGDOCDIR} || true | ||
|
||
# Add a slackbuild script: | ||
install -Dm644 ${CWD}/${PKGNAME}.SlackBuild ${PKGDOCDIR}/${PKGNAME}.SlackBuild | ||
|
||
# Add slack-desc | ||
install -Dm644 ${CWD}/slack-desc ${PKG}/install/slack-desc | ||
|
||
# Create package: | ||
cd ${PKG} | ||
/sbin/makepkg -l y -c n ${CWD}/${PKGNAME}-${PKGVERSION}-${ARCH}-${BUILD}${TAG}.txz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
NAME="sk1libs" | ||
VERSION="0.9.1" | ||
HOMEPAGE="http://sk1project.org" | ||
DOWNLOAD="http://sk1project.org/dc.php?target=sk1libs-0.9.1.tar.gz" | ||
FILENAME="sk1libs-0.9.1.tar.gz" | ||
REQUIRES="" | ||
MD5SUM="e18088bbc8a105e7535a96f40b80f284" | ||
SHASUM="dd948558128bb6547b1f277087bf3066104912da" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# HOW TO EDIT THIS FILE: | ||
# The "handy ruler" below makes it easier to edit a package description. Line | ||
# up the first '|' above the ':' following the base package name, and the '|' | ||
# on the right side marks the last column you can put a character in. You must | ||
# make exactly 11 lines for the formatting to be correct. It's also | ||
# customary to leave one space after the ':' except on otherwise blank lines. | ||
|
||
|-----handy-ruler------------------------------------------------------| | ||
sk1libs: sk1libs (python libs for sK1 Project) | ||
sk1libs: | ||
sk1libs: sk1libs is a set of python libs for sK1 Project. | ||
sk1libs: The package includes multiplatform non-GUI extensions | ||
sk1libs: which are usually native extensions | ||
sk1libs: | ||
sk1libs: | ||
sk1libs: | ||
sk1libs: | ||
sk1libs: | ||
sk1libs: |