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..c338146 --- /dev/null +++ b/src/debian/install.sh @@ -0,0 +1,9 @@ +#!/bin/bash +set -e +# 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/ 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