summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e78a73a501ac590dc62495bf886da41f48a7456c (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
31
32
33
34
35
36
37
38
39
# Maintainer: Sir-Photch < sir-photch at posteo dot me >

pkgname=fedi-fetcher
pkgver=7.0.5
pkgrel=2
pkgdesc="FediFetcher is a tool for Mastodon that automatically fetches missing replies and posts from other fediverse instances, and adds them to your own Mastodon instance."
arch=(any)
url="https://github.com/nanos/FediFetcher"
license=(MIT)
depends=(python python-certifi python-charset-normalizer python-docutils python-idna python-dateutil python-requests python-six python-smmap python-urllib3 python-defusedxml)

backup=(etc/fedi-fetcher/config.json)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
	fedi-fetcher.service
	fedi-fetcher.timer
	sysusers-fedi-fetcher.conf
	tmpfiles-fedi-fetcher.conf
	example-config.json)
sha256sums=('b41d0d71ce08b42d334cde229e24d84e33f2b0678add016e379f4d1b8b8f2091'
            '734d534342a0d5bdd70c1d339e50a6d2549b4a9bba96810396700a8114f75929'
            '4f3d8a37de2a11a794afd6e1d10df9abfe8cb8a42297fa8451e3e86228523265'
            'eca9986a6e86b3208c2f786125f8a513037cd5a59dab2670e9439d57a2f7f595'
            'b97bfea3b64a666f199f46c979711c0d469cc2d34a35e61443ee42ff8096538b'
            'f6f93eb189cdcc11343adab783eb3aa5dab0785baa9a2868ec8fe0fc0c2949b5')

package() {
	cd "$srcdir"
	install -Dm 644 $pkgname.{service,timer} -t "$pkgdir/usr/lib/systemd/system"
	install -Dm 644 "sysusers-$pkgname.conf" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
	install -Dm 644 "tmpfiles-$pkgname.conf" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"

	install -Dm 640 example-config.json "$pkgdir/etc/$pkgname/config.json"

	cd "$srcdir/FediFetcher-$pkgver"
	install -Dm 755 find_posts.py "$pkgdir/usr/bin/$pkgname"

	install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
	install -Dm 644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname"
}