summaryrefslogtreecommitdiff
path: root/libre/your-freedom_emu/PKGBUILD
blob: 2267ff262f062e28e98d2131aba02f9acc34da2a (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: Parabola Project <dev@lists.parabola.nu>

pkgname=your-freedom_emu
pkgdesc="This package removes free software emulators for which no free software games, OS or applications exist (yet)."
license=('GPL3')
url="https://git.parabola.nu/blacklist.git"
pkgver=20190612
_gitver=3acbf849647f986e3004e7d24ff5a89b17e0a641
pkgrel=3

arch=('any')
install=${pkgname}.install

makedepends=(librelib)
source=(blacklist-${_gitver}.txt::https://git.parabola.nu/blacklist.git/plain/${pkgname}-blacklist.txt?id=${_gitver})
sha512sums=('cd14fde5c5a1e3727fb637d76dc4619745a68a965cbda01aa9f6d5b17516eaa944c4c5c99b947ced7afa433660ff02241945fe14a652e38756192fcda89e6d3f')

package() {
	cd "$srcdir"

	conflicts=($( \
		< blacklist-${_gitver}.txt \
		libreblacklist normalize | \
		cut -d: -f1,2 | \
		sed -n 's/:$//p' | \
		sort -u \
		))

	install -Dm644 blacklist-${_gitver}.txt "$pkgdir"/usr/share/doc/${pkgname}/blacklist.txt
}