diff options
author | Qontinuum | 2021-07-02 18:49:41 +0200 |
---|---|---|
committer | Qontinuum | 2021-07-02 18:49:41 +0200 |
commit | 9efbe83facb9808cf289de6dfc550326f617c5b6 (patch) | |
tree | fa8ebb906902d7fc59c2a2e860b1a47f1df703c1 | |
download | aur-9efbe83facb9808cf289de6dfc550326f617c5b6.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3636f42750cf --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = telebot-git + pkgdesc = Telegram Bot API in C + pkgver = r130.470994b + pkgrel = 1 + url = https://elmurod.net/telebot/ + arch = any + license = Apache + makedepends = cmake + depends = json-c + depends = curl + source = git+https://github.com/smartnode/telebot + b2sums = SKIP + +pkgname = telebot-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8663c70f712a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Qontinuum <qontinuum@artixlinux.org> + +pkgname=telebot-git +pkgver=r130.470994b +pkgrel=1 +pkgdesc='Telegram Bot API in C' +arch=('any') +url='https://elmurod.net/telebot/' +license=('Apache') +depends=('json-c' 'curl') +makedepends=('cmake') +source=('git+https://github.com/smartnode/telebot') +b2sums=('SKIP') + +pkgver() { + cd "telebot" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/telebot" + cmake -DCMAKE_INSTALL_PREFIX=/usr . +} + +build() { + cd "$srcdir/telebot" + make +} + +package() { + cd "$srcdir/telebot" + make DESTDIR="$pkgdir" PREFIX="/usr" install +} |