summaryrefslogtreecommitdiff
path: root/libre/your-freedom/PKGBUILD
blob: 6346ef04686e378b9f4068b437b2dd72a8e901e3 (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=('5080970007c19680839f94d4f959085ee422c0451105d8c905ccfcc214547f4e')


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
}