Created
February 18, 2019 11:44
-
-
Save Un1Gfn/8a1b50bf7e70811e6a9d222d1b0df285 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mantainer Jens Staal <staal1978@gmail.com> | |
pkgname=openwatcom-v2-git | |
pkgver=r9071.814761b1f | |
pkgrel=1 | |
pkgdesc="V2 Fork of Open Watcom suite of compilers and tools" | |
arch=('x86_64') | |
url="http://open-watcom.github.io/open-watcom/" | |
license=('custom:OWPL-1') | |
makedepends=( | |
'git' | |
'dosbox' | |
'ghostscript' | |
# 'openwatcom-v2' | |
) | |
checkdepends=() | |
optdepend=( | |
# 'openwatcom-v2: skip bootstrapping with gcc' \ | |
# 'dosbox: build documentation (wgml)' | |
) | |
provides=('openwatcom-v2') | |
conflicts=('openwatcom-v2') | |
source=("${pkgname%-git}::git+git://github.com/open-watcom/open-watcom-v2.git") | |
md5sums=('SKIP') | |
options=('!strip' '!buildflags' 'staticlibs') | |
pkgver() { | |
cd "$srcdir/${pkgname%-git}" | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
prepare() { | |
cd "$srcdir/${pkgname%-git}" | |
} | |
build() { | |
cd "$srcdir/${pkgname%-git}" | |
msg "set current source directory and other variables" | |
source setvars1.sh # source cmnvars.sh | |
msg "OWROOT is $OWROOT" #testing variables from setvars.sh | |
msg "OWSRCDIR is $OWSRCDIR" #testing variables from cmnvars.sh | |
msg "WATCOM is $WATCOM" | |
msg "OWDEFPATH is $OWDEFPATH" | |
# ./clean.sh # make sure everything is pristine | |
# git clean -dfx # restore your code base to a pristine state | |
chmod +x build.sh | |
./build.sh # builder boot | |
# build.log | |
# bld/build.log | |
# You may want to run builder cprel from inside the bld directory after successfully building everything to copy the complete system to the release tree rel. | |
# ./buildrel.sh | |
cd bld | |
builder rel # builder build; builder cprel | |
builder docs | |
} | |
check() { | |
cd "$srcdir/${pkgname%-git}" | |
# setvars.sh: WATCOM=.../rel | |
cd bld | |
builder test # builder buildtest | |
} | |
package() { | |
cd $srcdir/watcom/rel | |
install -d "$pkgdir/usr/share/licenses/watcom" | |
install -Dm644 "$srcdir/watcom/license.txt" "$pkgdir/usr/share/licenses/watcom/license.txt" | |
mkdir -p $pkgdir/opt/watcom/{binl,lh,h/{dos,win,nt,os2,os21x},lib286/{dos,win,os2},lib386/{nt,os2}} | |
cp -ar * $pkgdir/opt/watcom/ | |
cp $srcdir/owsetenv.sh $pkgdir/opt/watcom/ | |
msg "adding some fake binaries to make life easier" | |
cd $pkgdir/opt/watcom/binl | |
ln -s /usr/bin/true ranlib | |
ln -s wlib ar | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment