summaryrefslogtreecommitdiff
path: root/libre/your-freedom/PKGBUILD
blob: c8ae458cd4ec5c48bd1537f8d81b41559f74919e (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
# SPDX-License-Identifier: CC0-1.0
# Maintainer: Parabola Hackers <dev@lists.parabola.nu>


# NOTE: This PKGBUILD does not need to be edited manually.
#       The package is normally built automatically by autobuilder.
#       To generate a new package, simply push changes to blacklist.git.
#       The autobuilder will modify this PKGBUILD,
#       replacing $pkgver, $_gitver, and the checksum (updpkgsums),
#       build and publish the package,
#       and commit the modified PKGBUILD to abslibre.


pkgname=your-freedom
pkgver=20220508
_gitver=c3a0d49f9f95503ed41feed32efbfd8b38401852
pkgrel=1
pkgdesc="This package conflicts with every nonfree package known to date to ensure your system is free."
license=(GPL3)
url=https://wiki.parabola.nu/Blacklist
arch=(any)
install=${pkgname}.install

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

sha256sums=('53e27f1b6ef1042e2377a710b5faf8edfa4a63efeee082702dac15aa1cb1e550')


package()
{
  # collect blacklisted package names as pacman conflicts,
  # also to be excluded by the repo importer, and rejected by libremakepkg
  conflicts=( $( libreblacklist normalize < blacklist-${_gitver}.txt | \
                 cut -d: -f1,2 | sed -n 's/:$//p' | sort -u          ) )

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