summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Wojdyla2021-01-08 12:29:26 +0100
committerMichal Wojdyla2021-01-08 12:29:26 +0100
commitf14c7a6665b1d8533f9afafa859f1038c5078727 (patch)
tree950c4ef087ffc37ddacb58562c1b1b3bc969e26c
parentf1571ff0ab643454940b05d670de7351c5fe418a (diff)
downloadaur-f14c7a6665b1d8533f9afafa859f1038c5078727.tar.gz
pkgbuild update
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD37
2 files changed, 20 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8b0f33be69d..b6e9800a9fe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,13 @@
pkgbase = python-crcmod
pkgdesc = Cyclic Redundancy Check (CRC) implementation in Python.
pkgver = 1.7
- pkgrel = 1
+ pkgrel = 2
url = https://pypi.python.org/pypi/crcmod/
- arch = i686
- arch = x86_64
+ arch = any
license = MIT
depends = python
- options = !emptydirs
source = https://pypi.python.org/packages/source/c/crcmod/crcmod-1.7.tar.gz
- md5sums = 2d5b92117d958dcead94f9e17f54cd32
+ sha256sums = dc7051a0db5f2bd48665a990d3ec1cc305a466a77358ca4492826f41f283601e
pkgname = python-crcmod
diff --git a/PKGBUILD b/PKGBUILD
index e53a7a8c878..c5382ac1073 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,24 @@
-# Maintainer: Your Name <youremail@domain.com>
-_pkgname=crcmod
+# Contributor: Michal Wojdyla < micwoj9292 at gmail dot com >
+
pkgname=python-crcmod
pkgver=1.7
-pkgrel=1
-pkgdesc="Cyclic Redundancy Check (CRC) implementation in Python."
-arch=('i686' 'x86_64')
-url="https://pypi.python.org/pypi/crcmod/"
+pkgrel=2
+pkgdesc='Cyclic Redundancy Check (CRC) implementation in Python.'
+arch=('any')
+url=https://pypi.python.org/pypi/crcmod/
license=('MIT')
-groups=()
depends=('python')
-makedepends=()
-provides=()
-conflicts=()
-replaces=()
-backup=()
-options=(!emptydirs)
-install=
-source=("https://pypi.python.org/packages/source/c/$_pkgname/$_pkgname-${pkgver}.tar.gz")
-md5sums=(2d5b92117d958dcead94f9e17f54cd32)
-package() {
- cd "$srcdir/$_pkgname-$pkgver"
- python setup.py install --root="$pkgdir/" --optimize=1
+source=("https://pypi.python.org/packages/source/c/crcmod/crcmod-${pkgver}.tar.gz")
+sha256sums=('dc7051a0db5f2bd48665a990d3ec1cc305a466a77358ca4492826f41f283601e')
+
+build() {
+ cd crcmod-$pkgver
+ python setup.py build
}
-# vim:set ts=2 sw=2 et:
+package() {
+ cd crcmod-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
+}