summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dc80680805abd9dd0f2dbdfdab0c553403dd6b8d (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
28
29
30
# Maintainer: Matteo Salonia <saloniamatteo@protonmail.com>
# To use memethesis-cli, run `memethesis --help`

pkgname=memethesis-cli
pkgver=3.3.0
pkgrel=1
pkgdesc="Create memes from the terminal"
arch=('any')
url="https://github.com/fakefred/memethesis-cli"
license=('GPL3')
depends=('python>=3' 'python-pip' 'imagemagick')
makedepends=('git')
# 3.2.1 is the version that can be downloaded in the releases
# We will be using 3.3.0 but we'll have to clone the entire repo
#source=("https://github.com/fakefred/memethesis-cli/archive/3.2.1.tar.gz")
#sha256sums=("3c0b1727bdc8e7c39885cdbfcdf6bc1daeae84b8be4780c756f053e42a37e31c")
source=("git+https://github.com/fakefred/${pkgname}.git")
sha256sums=("SKIP")

prepare() {
	# install python dependencies
	pip3 install ascim colored Pillow PyInquirer PyYAML setuptools
}

package() {
	# go into memethesis-cli
	cd "${srcdir}/${pkgname}"
	# install memethesis-cli located in /usr/bin/memethesis
	python3 setup.py install --root="$pkgdir"
}