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