summaryrefslogtreecommitdiff
path: root/libre/your-freedom/PKGBUILD
blob: 5e995ed97f5ac63d7c0f5c7041eb0f705b3d3b4f (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
# Maintainer: Parabola Project <dev@lists.parabola.nu>


pkgname=your-freedom
pkgver=20220404
_gitver=3aa7004ecbeb6a312bcc43ddbca3db9b0eaf3097
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=('d2b8ec946d8436e302d634f6a1fb1580d8bd6a42b1b6d61caf6275ef6c3e501c')


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
}