version 1.1, 2025/03/08 02:12:22
|
version 1.2, 2025/03/08 03:43:38
|
Line 1
|
Line 1
|
#!/usr/bin/bash |
#!/usr/bin/bash |
|
|
PKGTMP="/tmp/CLDWfreem" |
PKG=CLDfreem |
|
ARCH=sparc |
|
PKGFILE=${PKG}-${ARCH}.pkg |
|
|
OLDDIR=$(pwd) |
cat <<EOF > pkginfo |
DISTROOT="../../../../" |
PKG=${PKG} |
|
|
rm -rf "${PKGTMP}" |
|
|
|
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. |
NAME=FreeM programming language and database. |
ARCH=sparcv9 |
ARCH=sparcv9 |
VERSION=$(cat ../../../../sem.ver) |
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} |