diff options
author | gustawho | 2021-05-06 15:05:42 -0600 |
---|---|---|
committer | gustawho | 2021-05-06 15:05:42 -0600 |
commit | 22a747810b4a4fcfae1f1d40f9aa43352eb5b028 (patch) | |
tree | 9904970d288c30b1fab18b790c27ebdfc06b1a1e | |
parent | fdd04bfc09d75247b2f83e3cb46653f1c000dae5 (diff) | |
download | aur-22a747810b4a4fcfae1f1d40f9aa43352eb5b028.tar.gz |
Added extra archs & PKGBUILD cleanup
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 22 insertions, 36 deletions
@@ -1,14 +1,18 @@ pkgbase = libtd-git pkgdesc = TDLib (Telegram Database library) is a cross-platform library for building Telegram clients (Git) - pkgver = 1.6.0.r756.gf45d80fe - pkgrel = 2 + pkgver = 1.7.0.r747.gb342ec33 + pkgrel = 1 url = https://core.telegram.org/tdlib arch = x86_64 + arch = arm + arch = armv7h + arch = armv6h + arch = aarch64 license = Boost makedepends = git - makedepends = gcc>=4.9.2 + makedepends = gcc makedepends = make - makedepends = cmake>=3.0.2 + makedepends = cmake makedepends = gperf makedepends = php depends = openssl @@ -1,49 +1,31 @@ -# Maintainer: Felix Golatofski <contact@xdfr.de> -# Contributor: Felix Serrano Blanco <felixseblanc@gmail.com> +# Maintainer: Gustavo Castro < gustawho [ at ] gmail [ dot ] com > +# Previous Maintainer: Felix Golatofski <contact@xdfr.de> +# Previous Contributor: Felix Serrano Blanco <felixseblanc@gmail.com> -_pkgname=libtd -pkgname=${_pkgname}-git -pkgver=1.6.0.r756.gf45d80fe -pkgrel=2 +pkgname=libtd-git +pkgver=1.7.0.r747.gb342ec33 +pkgrel=1 pkgdesc='TDLib (Telegram Database library) is a cross-platform library for building Telegram clients (Git)' -arch=('x86_64') +arch=('x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64') url='https://core.telegram.org/tdlib' license=('Boost') -depends=( - 'openssl' - 'zlib' -) -makedepends=( - 'git' - 'gcc>=4.9.2' - 'make' - 'cmake>=3.0.2' - 'gperf' - 'php' -) +depends=('openssl' 'zlib') +makedepends=('git' 'gcc' 'make' 'cmake' 'gperf' 'php') provides=('libtd') conflicts=('telegram-tdlib' 'libtd') -source=("$_pkgname::git+https://github.com/tdlib/td.git") +source=("${pkgname%-git}::git+https://github.com/tdlib/td.git") sha256sums=('SKIP') pkgver() { - cd "$srcdir/$_pkgname" - # cutting off 'v' prefix that presents in the git tag + cd "${pkgname%-git}" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd "$srcdir/$_pkgname" - rm -rf build - mkdir build - cd build - CXXFLAGS="" - cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH="$pkgdir/usr" .. - cmake --build . + cmake -B build -S "${pkgname%-git}" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release + cmake --build build --config Release } package() { - cd "$srcdir/$_pkgname/build" - mkdir -p "$pkgdir/usr" - cmake --build . --target install + DESTDIR="${pkgdir}" cmake --install build --config Release } |