summaryrefslogtreecommitdiff
path: root/nonsystemd/your-initfreedom/PKGBUILD
blob: 9ae16fd07af2fb2e0267ff5c3163ef392505060b (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
# Maintainer: Parabola Project <dev@lists.parabola.nu>

pkgname=your-initfreedom
pkgdesc="This package conflicts with every package known to work only for/with systemd."
license=('GPL3')
url="https://git.parabola.nu/blacklist.git"
pkgver=20191031
_gitver=fc51ba3cee3bdb693507af69de18de53ff99f3e5
pkgrel=1

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

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

pkgver() {
    date +%Y%m%d
}

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
}