summaryrefslogtreecommitdiff
path: root/nonsystemd/your-initfreedom/PKGBUILD
blob: 02c2a62283b79691e6ff4be72ea0604fd7b8dee5 (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=20191030
_gitver=b2c69d114255015c1881cea5ed45b0d6c2ec7932
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=('ff4f27f71087a276a25f207cafbbcf0ac2459b5f68cfd7f9afa01bb46ccd5de0bfde726b230c86731f82e62a3df6b201658cdbe40597c84e336af91e4403c475')

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
}