From 76ed0ac12ddb7709072e79aa2ce4c6058a17e2b8 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 20 Jun 2014 12:18:17 -0400 Subject: (crosses fingers) automate updating of libre/your-freedom --- libre/your-freedom/PKGBUILD | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) (limited to 'libre/your-freedom/PKGBUILD') diff --git a/libre/your-freedom/PKGBUILD b/libre/your-freedom/PKGBUILD index 6f2b209d5..1c15ca6ed 100644 --- a/libre/your-freedom/PKGBUILD +++ b/libre/your-freedom/PKGBUILD @@ -1,25 +1,31 @@ -# Maintainer: Parabola Project +# Maintainer: Parabola Project + pkgname=your-freedom -pkgver=$(LC_ALL=C date -u +%Y%m%d) -pkgrel=1 +pkgver=... +_gitver=... pkgdesc="This package conflicts with every nonfree package known to date to ensure your system is free." -arch=('any') -url="https://parabolagnulinux.org" license=('GPL3') +url="https://projects.parabolagnulinux.org/blacklist.git" + +pkgrel=1 +arch=('any') groups=('base') install=${pkgname}.install -source=(blacklist-${pkgver}.txt::https://projects.parabolagnulinux.org/blacklist.git/plain/blacklist.txt) + +makedepends=(librelib) +source=(blacklist-${_gitver}.txt::https://projects.parabolagnulinux.org/blacklist.git/plain/blacklist.txt?id=${_gitver}) +md5sums=('5fd14982619414fea1882b351607291e') package() { - conflicts=($(cut -d: -f1,2 blacklist-${pkgver}.txt | \ - sed "s/:$//" | \ - grep -v ":" | \ - grep -v '^#' | \ - sort -u - )) - cd ${srcdir} - install -d ${pkgdir}/usr/share/doc/${pkgname} - install -m644 blacklist-${pkgver}.txt ${pkgdir}/usr/share/doc/${pkgname}/ -} + cd "$srcdir" -md5sums=('5fd14982619414fea1882b351607291e') + conflicts=($( + < blacklist-${pkgver}.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 +} -- cgit v1.2.3