diff options
author | Cassandra Watergate | 2022-07-05 15:22:29 -0700 |
---|---|---|
committer | Cassandra Watergate | 2022-07-05 15:22:29 -0700 |
commit | 2045e6885a5ca6884c154052cdc4b745fbdfa908 (patch) | |
tree | 30de64a2fd16bf0471c732fc9412cbc48ed315fa | |
parent | 7722a0ff13f4e680c2960e0d48201ea14b3edac3 (diff) | |
download | aur-2045e6885a5ca6884c154052cdc4b745fbdfa908.tar.gz |
fix with musl-libc
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 12 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = tgs-to-gif-cpp-git pkgdesc = Animated stickers for Telegram (*.tgs) to animated GIFs converter, c++ version - pkgver = 0.1.2 - pkgrel = 2 + pkgver = r6.f626548 + pkgrel = 1 url = https://github.com/ed-asriyan/tgs-to-gif arch = x86_64 arch = i386 @@ -1,8 +1,8 @@ # Maintainer: Cassandra Watergate (saltedcoffii) <cassandrawatergate@outlook.com> pkgname=tgs-to-gif-cpp-git -pkgver=0.1.2 -pkgrel=2 +pkgver=r6.f626548 +pkgrel=1 pkgdesc="Animated stickers for Telegram (*.tgs) to animated GIFs converter, c++ version" arch=("x86_64" "i386" "arm" "armv6h" "armv7h" "aarch64") url="https://github.com/ed-asriyan/tgs-to-gif" @@ -12,14 +12,19 @@ makedepends=('conan' 'cmake') provides=('tgs-to-gif' 'tgs-to-gif-cpp' 'tgs-to-gif-git') conflicts=('tgs-to-gif' 'tgs-to-gif-cpp' 'tgs-to-gif-git') source=("git+https://github.com/ed-asriyan/tgs-to-gif" - basename.patch) + basename.patch) sha256sums=('SKIP' - 'd5b6f6c734ed8dbc6ffed897e2789d3a6e2a93b5ff3cf85bf6d42298353d1e9f') + 'd5b6f6c734ed8dbc6ffed897e2789d3a6e2a93b5ff3cf85bf6d42298353d1e9f') build() { cd "tgs-to-gif" git checkout master-cpp - patch -Np1 -i ../basename.patch + # This patch fails when using musl libc, detect it and only apply the patch if not. + if [ -z $(ldd /bin/ls | grep 'musl' | head -1 | cut -d ' ' -f1) ]; then + patch -Np1 -i ../basename.patch + else + echo "Detected musl libc: not applying basename.patch" + fi conan install . --build cmake CMakeLists.txt make |