summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c7fe3954bf6379f60cdec35c0b5ad50c19eb856 (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
27
# Maintainer: saltedcoffii <55339220+saltedcoffii@users.noreply.github.com>
pkgname=tgs-to-gif-cpp-git
pkgver=0.1.2
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=("git+https://github.com/ed-asriyan/tgs-to-gif")
md5sums=("SKIP")

build() {
	cd "tgs-to-gif"
	git checkout master-cpp
	conan install . --build
	cmake CMakeLists.txt
	make
}

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