From 8294bb9d0a62c3d93fab79cee4222bb305aff3a6 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Thu, 26 Dec 2024 15:33:06 +0700 Subject: [PATCH] updated pkgbuild and gitignore --- .gitignore | 3 ++- PKGBUILD | 13 +++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index c25f2b4..4ed2cf0 100755 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ *pkg *udpchat* bin -pkg \ No newline at end of file +pkg +arch \ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD index ca43715..7a59f86 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,19 +1,24 @@ # Maintainer: Tola Mironcenko -pkgname=udpchat +pkgname=udpchat-git +_pkgname="${pkgname%-git}" +_reponame=udpchat pkgver=1.0.1 pkgrel=1 pkgdesc="Chat server based on udp" arch=('x86_64') url="" +conflicts=("$_pkgname") license=('GPL') source=("git+https://gitea.home.com:3000/TolaMironcenko/udpchat.git") build() { - cd $srcdir + cd $_reponame make } package() { - cd $srcdir - make INSTALL_DIR="$pkgdir/usr/local/bin/" install + cd $_reponame + make DESTDIR="$pkgdir/usr/local/bin/" install } + +cksums=('SKIP') \ No newline at end of file