--- freem/mk-solaris-package 2025/03/08 02:12:22 1.1 +++ freem/mk-solaris-package 2025/03/08 06:24:37 1.4 @@ -1,29 +1,21 @@ #!/usr/bin/bash -PKGTMP="/tmp/CLDWfreem" +PKG=CLDfreem +ARCH=$1 +VERS=$(cat sem.ver) +SOLVER=$(uname -a | cut -d' ' -f3) +PKGFILE=${PKG}-${VERS}-solaris${SOLVER}-${ARCH}.pkg -OLDDIR=$(pwd) -DISTROOT="../../../../" - -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 < "${PKGTMP}/pkginfo" -PKG=CLDWfreem -NAME=FreeM programming language and database. -ARCH=sparcv9 -VERSION=$(cat ../../../../sem.ver) +cat < pkginfo +PKG=${PKG} +NAME=Coherent Logic Development FreeM programming language and database. +ARCH=${ARCH} +VERSION=${VERS} CATEGORY=application BASEDIR=/usr/local EOF + +pkgmk -o -d /tmp -a ${ARCH} +touch ${PKGFILE} +pkgtrans -s /tmp ${PKGFILE} ${PKG} +rm -r /tmp/${PKG}