2021-06-15 10:26:26 +02:00
|
|
|
#!/bin/bash
|
2019-01-20 22:22:39 +01:00
|
|
|
set -x
|
|
|
|
|
|
|
|
CWD=$(pwd)
|
|
|
|
|
|
|
|
PRGNAM=$(basename $CWD)
|
|
|
|
|
|
|
|
BUILD=1
|
|
|
|
VERSION=1
|
|
|
|
ARCH="noarch"
|
|
|
|
|
2020-06-25 11:23:11 +02:00
|
|
|
TAG=gwh
|
2019-01-20 22:22:39 +01:00
|
|
|
TMP=/tmp/$TAG
|
|
|
|
PKG=$TMP/pkg-$PRGNAM
|
|
|
|
OUTPUT=/tmp
|
|
|
|
|
|
|
|
PREFIX=/usr
|
|
|
|
|
|
|
|
# Cleaning
|
|
|
|
rm -fr $PKG
|
|
|
|
mkdir -p $PKG$PREFIX/share/games/dhewm3/
|
|
|
|
|
|
|
|
# Installation
|
|
|
|
cp -R $CWD/base $PKG$PREFIX/share/games/dhewm3/
|
|
|
|
|
|
|
|
# Cleaning
|
|
|
|
chown -R root:root $PKG
|
|
|
|
find $PKG -type f -exec chmod 644 {} \;
|
|
|
|
chmod +x $PKG$PREFIX/bin/*
|
|
|
|
|
|
|
|
# Packaging
|
|
|
|
cd $PKG
|
|
|
|
mkdir install
|
|
|
|
cat <<EOF > install/slack-desc
|
|
|
|
$PRGNAM: $PRGNAM (Official data for dhewm3)
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM: Doom 3
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM:
|
|
|
|
$PRGNAM: https://github.com/dhewm/dhewm3
|
|
|
|
$PRGNAM:
|
|
|
|
EOF
|
|
|
|
|
|
|
|
rm -f $PKG/{,usr/}lib$(uname -m | grep -o 64)/*.la
|
2023-08-16 12:23:26 +02:00
|
|
|
/sbin/makepkg --linkadd y --chown n --prepend $OUTPUT/$PRGNAM-$(echo $VERSION | tr -d '-')-$ARCH-$BUILD$TAG.txz
|