diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 11 insertions, 2 deletions
@@ -1,9 +1,11 @@ pkgbase = resolve-march-native pkgdesc = Tool to determine what GCC flags -march=native would resolve into pkgver = 1.0.0 - pkgrel = 1 + pkgrel = 2 + url = https://github.com/hartwork/resolve-march-native arch = any license = GPL + checkdepends = python-pytest makedepends = python-setuptools source = resolve-march-native-1.0.0.tar.gz::https://github.com/hartwork/resolve-march-native/archive/1.0.0.tar.gz sha256sums = a6d0f16db19d6bc69beca026d43a82d4282e354bf5aaa76e54b0a224a5156946 @@ -2,12 +2,13 @@ pkgname=resolve-march-native pkgver=1.0.0 -pkgrel=1 +pkgrel=2 pkgdesc="Tool to determine what GCC flags -march=native would resolve into" arch=('any') url="https://github.com/hartwork/resolve-march-native" license=('GPL') makedepends=('python-setuptools') +checkdepends=('python-pytest') source=("$pkgname-$pkgver.tar.gz::https://github.com/hartwork/${pkgname}/archive/${pkgver}.tar.gz") sha256sums=('a6d0f16db19d6bc69beca026d43a82d4282e354bf5aaa76e54b0a224a5156946') @@ -16,6 +17,12 @@ build() { python setup.py build } +check(){ + cd "$srcdir/$pkgname-$pkgver" + + pytest +} + package() { cd "$srcdir"/$pkgname-$pkgver python setup.py install --root="${pkgdir}/" --skip-build --optimize=1 |