aboutsummaryrefslogtreecommitdiffstats
path: root/testing/i2c-tools/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2018-12-08 12:59:10 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2018-12-08 12:59:10 +0000
commit3c70ce3b8f38dad4f204e6e9d1727ece7737a12e (patch)
treedd820f3b84548ecbec875ab1c1cae8f831bcb681 /testing/i2c-tools/APKBUILD
parent4d66967aa77b1efdd9272b0db661d3ad1e4e3356 (diff)
downloadaports-3c70ce3b8f38dad4f204e6e9d1727ece7737a12e.tar.gz
aports-3c70ce3b8f38dad4f204e6e9d1727ece7737a12e.tar.bz2
aports-3c70ce3b8f38dad4f204e6e9d1727ece7737a12e.tar.xz
testing/i2c-tools: upgrade to 4.1
Diffstat (limited to 'testing/i2c-tools/APKBUILD')
-rw-r--r--testing/i2c-tools/APKBUILD20
1 files changed, 9 insertions, 11 deletions
diff --git a/testing/i2c-tools/APKBUILD b/testing/i2c-tools/APKBUILD
index 626adc317b..bd7360ae11 100644
--- a/testing/i2c-tools/APKBUILD
+++ b/testing/i2c-tools/APKBUILD
@@ -1,16 +1,13 @@
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=i2c-tools
-pkgver=4.0
+pkgver=4.1
pkgrel=0
pkgdesc="Tools for monitoring I2C devices"
url="http://www.lm-sensors.org/wiki/I2CTools"
arch="all"
license="GPL-2.0"
-depends=
-depends_dev=""
-makedepends="$depends_dev linux-headers py-setuptools python2-dev"
-install=
+makedepends="linux-headers py-setuptools python2-dev"
subpackages="$pkgname-dev $pkgname-doc py-smbus:py"
source="https://fossies.org/linux/misc/$pkgname-$pkgver.tar.gz"
@@ -18,16 +15,17 @@ builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$builddir"
- sed -i "s|^DESTDIR.*|DESTDIR = \"$pkgdir\"|" Makefile || return 1
- sed -i "s|^prefix.*|prefix = /usr|" Makefile || return 1
+ sed -i "s|^DESTDIR.*|DESTDIR = \"$pkgdir\"|" Makefile
+ sed -i "s|^prefix.*|prefix = /usr|" Makefile
+ sed -i "s|^PREFIX.*|PREFIX = /usr|" Makefile
}
build() {
cd "$builddir"
- make || return 1
+ make
cd "$builddir"/py-smbus
- CFLAGS="$CFLAGS -I${builddir}/include" python2 setup.py build || return 1
+ CFLAGS="$CFLAGS -I${builddir}/include" python2 setup.py build
}
py() {
@@ -41,7 +39,7 @@ package() {
make install
cd "$builddir"/py-smbus
- python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ python2 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="818725e7a03b33547244559ccf330adbd3292c075a5e2411ead816bb8289c6a402645e22603e2b14753f9acca79b138ccb6ec89f17e01a7190488b7b0fd51222 i2c-tools-4.0.tar.gz"
+sha512sums="e0dc3e8d9372658ee132332d695b9ad8537cddb63362e1b860b66d07516f33f50d3b67fbaf9769ba4affc1e20513522bfbd92f327c5c060b62be99c527609df6 i2c-tools-4.1.tar.gz"