[arch-commits] Commit in python-pythondata-software-compiler_rt/trunk (PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Tue Apr 28 14:22:36 UTC 2020
Date: Tuesday, April 28, 2020 @ 14:22:36
Author: ffy00
Revision: 622003
upgpkg: python-pythondata-software-compiler_rt 2020.04-1
Added:
python-pythondata-software-compiler_rt/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Added: PKGBUILD
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-04-28 14:22:36 UTC (rev 622003)
@@ -0,0 +1,30 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=pythondata-software-compiler_rt
+_pyname=${_pkgname//-/_}
+pkgname=python-$_pkgname
+pkgver=2020.04
+pkgrel=1
+pkgdesc='Python module containing data files for compiler_rt software (for use with LiteX)'
+arch=('any')
+url='https://github.com/litex-hub/pythondata-software-compiler_rt'
+license=('MIT' 'custom')
+depends=('python')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('3e70d5e5941654588a353b866224b4e8b14324d4e771c2d43918ed4749e9c14d1e9229d6fa2f62fb7b58b2964f5d3f5d2f0fee6b14fd3862cfa211a3b93b89bb')
+
+build() {
+ cd $_pkgname-$pkgver
+
+ python setup.py build
+}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm 644 $_pyname/data/LICENSE.TXT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
More information about the arch-commits
mailing list