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