version 1.1, 2025/03/08 02:12:22
|
version 1.5, 2025/03/08 17:42:33
|
Line 1
|
Line 1
|
#!/usr/bin/bash |
#!/usr/bin/bash |
|
|
PKGTMP="/tmp/CLDWfreem" |
PKG=CLDfreem |
|
ARCH=$1 |
|
OS=$2 |
|
VERS=$(cat sem.ver) |
|
SOLVER=$(uname -a | cut -d' ' -f3) |
|
PKGFILE=${PKG}-${VERS}-${OS}${SOLVER}-${ARCH}.pkg |
|
|
OLDDIR=$(pwd) |
cat <<EOF > pkginfo |
DISTROOT="../../../../" |
PKG=${PKG} |
|
NAME=Coherent Logic Development FreeM programming language and database. |
rm -rf "${PKGTMP}" |
ARCH=${ARCH} |
|
VERSION=${VERS} |
cd "${DISTROOT}" |
|
./configure --prefix=${PKGTMP} |
|
make clean |
|
make |
|
make install |
|
./configure --prefix=/usr/local |
|
make clean |
|
make |
|
cp src/freem ${PKGTMP}/bin/ |
|
cp src/fmadm ${PKGTMP}/bin/ |
|
cd "${OLDDIR}" |
|
|
|
cat <<EOF > "${PKGTMP}/pkginfo" |
|
PKG=CLDWfreem |
|
NAME=FreeM programming language and database. |
|
ARCH=sparcv9 |
|
VERSION=$(cat ../../../../sem.ver) |
|
CATEGORY=application |
CATEGORY=application |
BASEDIR=/usr/local |
BASEDIR=/usr/local |
EOF |
EOF |
|
|
|
pkgmk -o -d /tmp -a ${ARCH} |
|
touch ${PKGFILE} |
|
pkgtrans -s /tmp ${PKGFILE} ${PKG} |
|
rm -r /tmp/${PKG} |