makepkg for arch linux

This commit is contained in:
wt
2023-05-03 10:52:28 +07:00
parent 41be65d1cd
commit 7082769563
4 changed files with 78 additions and 1 deletions
+3 -1
View File
@@ -1,2 +1,4 @@
*DS_Store *DS_Store
*.vscode *.vscode
*pkg
*udpchat*
+1
View File
@@ -28,6 +28,7 @@ runclient:
@$(DESTDIR)client 127.0.0.1 43243 @$(DESTDIR)client 127.0.0.1 43243
install: install:
@mkdir -p $(INSTALL_DIR)
@echo -e "$(GREEN)[ $(YELLOW)50% $(GREEN)] $(RESET)INSTALL SERVER" @echo -e "$(GREEN)[ $(YELLOW)50% $(GREEN)] $(RESET)INSTALL SERVER"
@cp -rf $(DESTDIR)server $(INSTALL_DIR)udpchatserver @cp -rf $(DESTDIR)server $(INSTALL_DIR)udpchatserver
@echo -e "$(GREEN)[ $(YELLOW)100% $(GREEN)] $(RESET)INSTALL CLIENT" @echo -e "$(GREEN)[ $(YELLOW)100% $(GREEN)] $(RESET)INSTALL CLIENT"
+34
View File
@@ -0,0 +1,34 @@
# Maintainer: Tola Mironcenko <mironcenkotola@gmail.com>
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
}
+40
View File
@@ -174,3 +174,43 @@
[ i ] tola [ 09:32:53 ] : dfb [ i ] tola [ 09:32:53 ] : dfb
[ i ] tola [ 09:32:55 ] : sdb [ i ] tola [ 09:32:55 ] : sdb
[ i ] lisa [ 09:32:56 ] : sd [ 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