diff --git a/install-and-chroot.sh b/install-and-chroot.sh index f1118ad..7c27d51 100755 --- a/install-and-chroot.sh +++ b/install-and-chroot.sh @@ -43,6 +43,7 @@ sudo cp build $DIR/build && sh $DIR/enter-chroot /build || exit 1 # Insert pkg++ configuration in chroot sudo mkdir -p "$DIR/opt/pkgxx/dev" && \ + sudo mkdir -p "$DIR/opt/pkgxx/src" && \ sudo cp "pkgxx.conf.example" "$DIR/etc/pkgxx.conf" || exit 1 exit 0 diff --git a/pkgxx.conf.example b/pkgxx.conf.example index 12f65b6..fe0ee58 100644 --- a/pkgxx.conf.example +++ b/pkgxx.conf.example @@ -1,7 +1,15 @@ -distribution = "Alpine" -package-manager = "apk" -repository-manager = "apk" +with context + .distribution = "Alpine" + .packageManager = "apk" + .packagesDirectory = "/opt/pkgxx/dev" + .sourcesDirectory = "/opt/pkgxx/src" + .repositoryManager = "apk" + .builder = "Contributor Dev Team" + .repositoryDescription = "pkg++ dev repository" -builder = "Contributor Dev Team" +with environment + .MAKEFLAGS = "-j2" + .CFLAGS = "-O2 -fPIC" + .CXXFLAGS = "#{.CFLAGS}" + .LDFLAGS = "" -packages-directory = "/opt/pkgxx/dev"