summaryrefslogtreecommitdiff
path: root/graphics/leocad_pieces/leocad_pieces.SlackBuild
blob: 2d030d1a87f79b6946e1681937a90c7b45f11cbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh

# Slackware build script for leocad_pieces, the pieces library needed by
# LeoCAD

# Written by Niels Horn - niels.horn@gmail.com
# revision date 2010/04/15

PRGNAM=leocad_pieces
VERSION=3506
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

set -e

rm -rf $PKG
mkdir -p $PKG $OUTPUT

# Data from zip-file + set permissions
mkdir -p $PKG/usr/share/leocad
unzip $CWD/pieces-$VERSION.zip -d $PKG/usr/share/leocad
chown -R root:root $PKG
find $PKG -type f -exec chmod 644 {} \;

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}