summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 09e2dc5b97e9f7eb9d91361f75b17d6db59da294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: saltedcoffii <55339220+saltedcoffii@users.noreply.github.com>
pkgname=tgs-to-gif-cpp-git
pkgver=0.1
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"
license=('MIT')
depends=('rlottie-tdesktop')
# The package 'rlottie-git' also works but I don't know the syntax to allow the user choice. Please help patch this.
makedepends=('conan' 'cmake')
source=("https://github.com/saltedcoffii/tgs-to-gif/archive/$pkgver.tar.gz")
md5sums=("55d9b518cec58a9cc226a54aadae3851")

build() {
	cd "tgs-to-gif-$pkgver"
	conan install . --build
	cmake CMakeLists.txt
	make
}

package() {
	mkdir -p $pkgdir/usr/bin/
	install tgs-to-gif-$pkgver/bin/tgs_to_gif $pkgdir/usr/bin/tgs-to-gif
	ln -s $pkgdir/usr/bin/tgs-to-gif $pkgdir/usr/bin/tgs2gif
}