From 7082769563236a2c9df216b47f4b8f281037c739 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Wed, 3 May 2023 10:52:28 +0700 Subject: [PATCH] makepkg for arch linux --- .gitignore | 4 +++- Makefile | 1 + PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ bin/udpchatserver.log | 40 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 PKGBUILD diff --git a/.gitignore b/.gitignore index 5ede755..7a2f3fe 100755 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *DS_Store -*.vscode \ No newline at end of file +*.vscode +*pkg +*udpchat* \ No newline at end of file diff --git a/Makefile b/Makefile index 5c52a80..ba4330f 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,7 @@ runclient: @$(DESTDIR)client 127.0.0.1 43243 install: + @mkdir -p $(INSTALL_DIR) @echo -e "$(GREEN)[ $(YELLOW)50% $(GREEN)] $(RESET)INSTALL SERVER" @cp -rf $(DESTDIR)server $(INSTALL_DIR)udpchatserver @echo -e "$(GREEN)[ $(YELLOW)100% $(GREEN)] $(RESET)INSTALL CLIENT" diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..7af0496 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Tola Mironcenko +pkgname=udpchat +pkgver=1.0.1 +pkgrel=1 +epoch= +pkgdesc="" +arch=('x86_64') +url="" +license=('GPL') +groups=() +depends=() +makedepends=() +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +noextract=() +md5sums=() +validpgpkeys=() + +build() { + cd $HOME/Documents/cpp/udp_chat + make +} + +package() { + cd $HOME/Documents/cpp/udp_chat + make INSTALL_DIR="$pkgdir/usr/local/bin/" install +} diff --git a/bin/udpchatserver.log b/bin/udpchatserver.log index be1083e..9a3b95a 100644 --- a/bin/udpchatserver.log +++ b/bin/udpchatserver.log @@ -174,3 +174,43 @@ [ i ] tola [ 09:32:53 ] : dfb [ i ] tola [ 09:32:55 ] : sdb [ i ] lisa [ 09:32:56 ] : sd +[ i ] tola [ 10:38:33 ] : asdfa +[ i ] tola [ 10:38:33 ] : sdf +[ i ] tola [ 10:38:34 ] : asdf +[ i ] tola [ 10:38:34 ] : ad +[ i ] tola [ 10:38:34 ] : fgv +[ i ] tola [ 10:38:34 ] : sdfb +[ i ] tola [ 10:38:34 ] : sdf +[ i ] tola [ 10:38:35 ] : g +[ i ] tola [ 10:38:35 ] : asg +[ i ] tola [ 10:38:35 ] : as +[ i ] tola [ 10:38:35 ] : g +[ i ] tola [ 10:38:35 ] : asdfg +[ i ] lsia [ 10:38:38 ] : adf +[ i ] lsia [ 10:38:38 ] : gs +[ i ] lsia [ 10:38:38 ] : fb +[ i ] lsia [ 10:38:38 ] : sd +[ i ] lsia [ 10:38:38 ] : bs +[ i ] lsia [ 10:38:39 ] : gb +[ i ] lsia [ 10:38:39 ] : saer +[ i ] lsia [ 10:38:39 ] : b +[ i ] lsia [ 10:38:39 ] : er +[ i ] lsia [ 10:38:39 ] : gv +[ i ] lsia [ 10:38:39 ] : e +[ i ] lsia [ 10:38:40 ] : g +[ i ] lsia [ 10:38:40 ] : s +[ i ] lsia [ 10:38:40 ] : g +[ i ] lsia [ 10:38:40 ] : df +[ i ] lsia [ 10:38:41 ] : gb +[ i ] lsia [ 10:38:41 ] : sd +[ i ] lsia [ 10:38:41 ] : b +[ i ] lsia [ 10:38:41 ] : s +[ i ] lsia [ 10:38:41 ] : db +[ i ] lsia [ 10:38:42 ] : sg +[ i ] lsia [ 10:38:42 ] : b +[ i ] lsia [ 10:38:42 ] : sdfg +[ i ] lsia [ 10:38:42 ] : b +[ i ] lsia [ 10:38:42 ] : sdf +[ i ] lsia [ 10:38:43 ] : g +[ i ] lsia [ 10:38:43 ] : df +[ i ] lsia [ 10:38:43 ] : g