[arch-commits] Commit in reuse/repos (community-any community-any/PKGBUILD)

George Rawlinson grawlinson at archlinux.org
Tue Jul 6 01:12:41 UTC 2021


    Date: Tuesday, July 6, 2021 @ 01:12:40
  Author: grawlinson
Revision: 972531

archrelease: copy trunk to community-any

Added:
  reuse/repos/community-any/
  reuse/repos/community-any/PKGBUILD
    (from rev 972529, reuse/trunk/PKGBUILD)

----------+
 PKGBUILD |   47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

Copied: reuse/repos/community-any/PKGBUILD (from rev 972529, reuse/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-07-06 01:12:40 UTC (rev 972531)
@@ -0,0 +1,47 @@
+# Maintainer: George Rawlinson <george at rawlinson.net.nz>
+# Contributor: Max Mehl <aur at mehl dot mx>
+# SPDX-FileCopyrightText: 2019 Max Mehl
+# SPDX-License-Identifier: CC0-1.0
+
+pkgname='reuse'
+_pkgname="reuse-tool"
+pkgver=0.13.0
+pkgrel=2
+pkgdesc='Helper tool for providing and confirming copyright and licensing information'
+arch=('any')
+url='https://github.com/fsfe/reuse-tool'
+license=('GPL3' 'Apache' 'custom:CC-BY-SA-4.0' 'custom:CC0-1.0')
+_deps=(
+  'debian'
+  'requests'
+  'license-expression'
+  'boolean.py'
+  'jinja'
+  'binaryornot'
+)
+_makedeps=(
+  'setuptools'
+  'setuptools-scm'
+)
+depends=("${_deps[@]/#/python-}")
+makedepends=("${_makedeps[@]/#/python-}")
+optdepends=('git: git repository support'
+            'mercurial: mercurial repository support')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+b2sums=('050fafc0f23c91b9c6d4371a14b2c3562eadabc7b638de0a6078d27883fc4fe516753bcac3f676672150201ff21d8a8722ace2ce5d98abaf1d971b72b6b4f10e')
+
+build() {
+  cd "$_pkgname-$pkgver"
+  python setup.py build
+}
+
+package() {
+  cd "$_pkgname-$pkgver"
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  # install custom licenses
+  cd "$srcdir/$_pkgname-$pkgver/LICENSES"
+  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" \
+    CC-BY-SA-4.0.txt \
+    CC0-1.0.txt
+}




More information about the arch-commits mailing list