mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Update to version 5.13.17
This commit is contained in:
commit
a8c2a2ec75
2 changed files with 82 additions and 0 deletions
23
.SRCINFO
Normal file
23
.SRCINFO
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
pkgbase = nchat-no-telegram
|
||||
pkgdesc = Console-based chat client with support for Telegram
|
||||
pkgver = 5.13.17
|
||||
pkgrel = 1
|
||||
url = https://github.com/d99kris/nchat
|
||||
arch = x86_64
|
||||
license = MIT
|
||||
makedepends = cmake
|
||||
makedepends = go
|
||||
makedepends = gperf
|
||||
makedepends = ninja
|
||||
depends = file
|
||||
depends = ncurses
|
||||
depends = openssl
|
||||
depends = sqlite
|
||||
depends = zlib
|
||||
provides = nchat
|
||||
conflicts = nchat
|
||||
replaces = nchat
|
||||
source = nchat-no-telegram-5.13.17.tar.gz::https://github.com/d99kris/nchat/archive/refs/tags/v5.13.17.tar.gz
|
||||
sha256sums = 8621500202803fa23011de50dcec669252b1077d5171783da5e5388e0a6c8cb2
|
||||
|
||||
pkgname = nchat-no-telegram
|
||||
59
PKGBUILD
Normal file
59
PKGBUILD
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
# Maintainer:
|
||||
# Contributor: Hoang Nguyen <toi at doclai dot com>
|
||||
|
||||
_pkgname="nchat-no-telegram"
|
||||
pkgname="$_pkgname"
|
||||
pkgver=5.13.17
|
||||
pkgrel=1
|
||||
pkgdesc="Console-based chat client with support for Telegram"
|
||||
url="https://github.com/d99kris/nchat"
|
||||
license=('MIT')
|
||||
arch=('x86_64')
|
||||
|
||||
depends=(
|
||||
'file'
|
||||
'ncurses'
|
||||
'openssl'
|
||||
'sqlite'
|
||||
'zlib'
|
||||
)
|
||||
makedepends=(
|
||||
'cmake'
|
||||
'go'
|
||||
'gperf'
|
||||
'ninja'
|
||||
)
|
||||
|
||||
conflicts=('nchat')
|
||||
provides=('nchat')
|
||||
replaces=('nchat')
|
||||
|
||||
_pkgsrc="$_pkgname-$pkgver"
|
||||
_pkgext="tar.gz"
|
||||
source=("$_pkgsrc.$_pkgext"::"$url/archive/refs/tags/v$pkgver.$_pkgext")
|
||||
sha256sums=('8621500202803fa23011de50dcec669252b1077d5171783da5e5388e0a6c8cb2')
|
||||
|
||||
build() {
|
||||
export GOFLAGS+=' -buildvcs=false'
|
||||
|
||||
local _cmake_options=(
|
||||
-B build
|
||||
-S "$_pkgsrc"
|
||||
-G Ninja
|
||||
-DCMAKE_BUILD_TYPE=None
|
||||
-DCMAKE_INSTALL_PREFIX='/usr'
|
||||
-DCMAKE_INSTALL_MANDIR='/usr/share/man'
|
||||
-Wno-dev
|
||||
-DHAS_DUMMY=OFF
|
||||
-DHAS_TELEGRAM=OFF
|
||||
)
|
||||
|
||||
cmake "${_cmake_options[@]}"
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
install -Dm644 "$_pkgsrc/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
}
|
||||
|
||||
Loading…
Add table
Reference in a new issue