summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorNathan Owens2020-05-05 20:15:09 -0500
committerNathan Owens2020-05-05 20:15:29 -0500
commite2f25c737b575aaeffd0ff1ddf999048d35034d7 (patch)
tree9b099aac5411381ef24d55a41743d0559230d7ea /PKGBUILD
parent077bf51b8e4ec8b6ee1d30957cb141519c51625c (diff)
downloadaur-libtgbot-cpp.tar.gz
Update to 1.2.1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 21 insertions, 20 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3aadbd1f3db..dac5d17d062 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,34 +1,35 @@
+# Maintainer: Nathan Owens <ndowens @ artixlinux.org>
+
pkgname=libtgbot-cpp
-pkgver=1.1
+pkgver=1.2.1
pkgrel=1
pkgdesc="C++ library for Telegram bot API."
arch=('x86_64')
url="https://github.com/reo7sp/tgbot-cpp"
license=('MIT')
-depends=('openssl' 'boost-libs')
-makedepends=('boost' 'cmake')
+depends=('openssl' 'boost-libs' 'curl')
+makedepends=('boost' 'cmake' 'git')
replaces=('libtgbot-cpp-git')
-source=(
- 'https://github.com/reo7sp/tgbot-cpp/archive/v1.1.tar.gz'
- 'TGBOTConfig.cmake'
-)
-sha256sums=('0f3bd884f11f5a229f1bd49d55754670e07e6e31798fb162a0b1c8f74e633180'
+source=("git+https://github.com/reo7sp/tgbot-cpp#tag=v${pkgver}"
+ 'TGBOTConfig.cmake')
+sha256sums=('SKIP'
'fea742c2fbecc92141ed22404862f81247b3b52d3ed4ecea0903d4dc27e3b521')
build() {
- cd "${srcdir}/tgbot-cpp-${pkgver}"
- mkdir -p build
- cd build
- cmake \
- -DBUILD_SHARED_LIBS=ON \
- -DCMAKE_INSTALL_PREFIX=/usr \
- ..
- make
+ cd "${srcdir}/tgbot-cpp"
+ mkdir -p build
+
+ cmake -B build \
+ -DBUILD_SHARED_LIBS=ON \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make -C build
}
package() {
- cd "${srcdir}/tgbot-cpp-${pkgver}/build"
- make DESTDIR="${pkgdir}/" install
- install -Dm644 "${srcdir}/tgbot-cpp-${pkgver}/LICENSE" "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
- install -Dm644 "${srcdir}/TGBOTConfig.cmake" "${pkgdir}"/usr/lib/cmake/TGBOT/TGBOTConfig.cmake
+ cd "${srcdir}/tgbot-cpp"
+ make -C build DESTDIR="${pkgdir}" install
+
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+ install -Dm644 "${srcdir}/TGBOTConfig.cmake" \
+ -t "${pkgdir}"/usr/lib/cmake/TGBOT
}