From 23e2673eed2fc300bcf7240da01f2adc61ea6264 Mon Sep 17 00:00:00 2001 From: badPointer Date: Fri, 22 Sep 2023 16:37:06 +0000 Subject: [PATCH 1/4] feat: update readme --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f807a3..76a3e48 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,12 @@ -# ![NCC](assets/icon/ncc@32px.png "NCC") NCC +

+ + + +

+ NCC +

+

NCC

+

Nosial Code Compiler is a program written in PHP designed to be a multi-purpose compiler, package manager and toolkit. This program is a complete re-write of the now defunct [PHP Package Manager (PPM)](https://git.n64.cc/intellivoid/ppm) From 0e486e0a649d1fdb18654b082c91af15ce7156dc Mon Sep 17 00:00:00 2001 From: Netkas Date: Thu, 5 Oct 2023 01:50:13 +0000 Subject: [PATCH 2/4] Revert "Merge branch 'readme-upd' into 'master'" This reverts merge request !6 --- README.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index 76a3e48..8f807a3 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,4 @@ -

- - - -

- NCC -

-

NCC

-

+# ![NCC](assets/icon/ncc@32px.png "NCC") NCC Nosial Code Compiler is a program written in PHP designed to be a multi-purpose compiler, package manager and toolkit. This program is a complete re-write of the now defunct [PHP Package Manager (PPM)](https://git.n64.cc/intellivoid/ppm) From bb09222f463b36e994d7ce36dfce3ee6f47a3001 Mon Sep 17 00:00:00 2001 From: "Cybersecbyte [UFOLINUX]" Date: Thu, 5 Oct 2023 16:47:17 +0000 Subject: [PATCH 3/4] deb support --- src/debian/changelog | 2 +- src/debian/control | 14 +++++++++++--- src/debian/copyright | 2 +- src/debian/install.sh | 13 +++++++++++++ src/debian/rules | 9 +++++++++ src/debian/source/format | 1 + 6 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 src/debian/install.sh create mode 100644 src/debian/rules create mode 100644 src/debian/source/format diff --git a/src/debian/changelog b/src/debian/changelog index ed67c80..231bdae 100644 --- a/src/debian/changelog +++ b/src/debian/changelog @@ -6,4 +6,4 @@ ncc (2.0.0) unstable; urgency=medium * Added support for package management. * Enhancements to the compiler and toolkit. - -- netkas Tue, 04 Oct 2023 21:24:00 +0000 \ No newline at end of file + -- netkas Tue, 04 Oct 2023 21:24:00 +0000 diff --git a/src/debian/control b/src/debian/control index 1cb0b27..f1f38ed 100644 --- a/src/debian/control +++ b/src/debian/control @@ -1,9 +1,17 @@ -Package: ncc +Source: ncc +Section: devel +Priority: optional Version: 2.0.0 -Architecture: any Maintainer: netkas +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.5.1 Homepage: https://git.n64.cc/nosial/ncc +Vcs-Git: https://git.n64.cc/nosial/ncc.git +Vcs-Browser: https://git.n64.cc/nosial/ncc + +Package: ncc +Architecture: any Depends: php (>= 8.0), php-mbstring, php-common, php-ctype, php-curl, zlib1g, php-zip Description: Nosial Code Compiler is a multi-purpose compiler, package manager, and toolkit written in PHP. NCC (Nosial Code Compiler) is a versatile tool designed for various tasks related to PHP development. - It allows you to compile PHP code, manage packages, and perform various tasks in a PHP-centric environment. \ No newline at end of file + It allows you to compile PHP code, manage packages, and perform various tasks in a PHP-centric environment. diff --git a/src/debian/copyright b/src/debian/copyright index e7b2baa..a756036 100644 --- a/src/debian/copyright +++ b/src/debian/copyright @@ -5,4 +5,4 @@ Source: https://git.n64.cc/nosial/ncc Files: * Copyright: 2022-2023 Nosial - All Rights Reserved. -License: MIT \ No newline at end of file +License: MIT diff --git a/src/debian/install.sh b/src/debian/install.sh new file mode 100644 index 0000000..756ed01 --- /dev/null +++ b/src/debian/install.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +# Download redistributable source +wget -O ncc-2.0.0.tar.gz https://git.n64.cc/nosial/ncc/-/archive/dev/ncc-dev.tar.gz + +# Extract and install +tar -xzvf ncc-2.0.0.tar.gz +mv ncc-dev ncc-2.0.0 +cd ncc-2.0.0 +make redist tar +sudo mkdir -p /usr/share/ncc +sudo tar -xzvf build/ncc_2.0.0.tar.gz -C /usr/share/ncc/ diff --git a/src/debian/rules b/src/debian/rules new file mode 100644 index 0000000..919431f --- /dev/null +++ b/src/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_install: + # Run the custom install script from debian directory + $(CURDIR)/debian/install.sh + dh_auto_install diff --git a/src/debian/source/format b/src/debian/source/format new file mode 100644 index 0000000..9f67427 --- /dev/null +++ b/src/debian/source/format @@ -0,0 +1 @@ +3.0 (native) \ No newline at end of file From 41ec00d136b21b0efcfeb3c90cee62e35b0cfa89 Mon Sep 17 00:00:00 2001 From: "Cybersecbyte [UFOLINUX]" Date: Thu, 5 Oct 2023 17:33:09 +0000 Subject: [PATCH 4/4] Remove repo downloading and use local files --- src/debian/install.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/debian/install.sh b/src/debian/install.sh index 756ed01..c338146 100644 --- a/src/debian/install.sh +++ b/src/debian/install.sh @@ -1,13 +1,9 @@ #!/bin/bash set -e - -# Download redistributable source -wget -O ncc-2.0.0.tar.gz https://git.n64.cc/nosial/ncc/-/archive/dev/ncc-dev.tar.gz - -# Extract and install -tar -xzvf ncc-2.0.0.tar.gz -mv ncc-dev ncc-2.0.0 -cd ncc-2.0.0 +# compile and make ta +cd .. make redist tar + +# extract compiled tar to /usr/share/ncc directory sudo mkdir -p /usr/share/ncc sudo tar -xzvf build/ncc_2.0.0.tar.gz -C /usr/share/ncc/