summaryrefslogtreecommitdiff
path: root/libre/your-freedom/PKGBUILD
blob: b0de1d334fb5b465cd41bea96b62003a91ee774e (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 the auto-builder.
#       To generate a new package, simply push changes to blacklist.git.
#       If ${pkgname}-blacklist.txt is modified, the auto-builder will
#       replace $pkgver, $_gitver, and the checksum (updpkgsums),
#       build and publish the package, and commit the changes to abslibre.


pkgname=your-freedom
pkgver=20230907
_gitver=5accb7a0a8afd5498743f3eba66d535d4c84bb42
pkgrel=1
pkgdesc="This meta-package conflicts with every known non-free Arch package"
arch=(any)
url=https://wiki.parabola.nu/Blacklist
license=(custom:CCPL:zero) # TODO: NYI
# license=('CCPL:zero')    # TODO: NYI

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

sha256sums=('b22645d364cd57e7d49f028b1ce8ce47ca06ebf65b96d82d27603fbe8f941ba2')


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

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