aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-28 16:53:39 +0000
committerRoberto Oliveira <robertoguimaraes8@gmail.com>2017-11-28 16:54:17 +0000
commitee433416d80ca45107951a7372b66cd46583f5f4 (patch)
tree8f27bdbe10e31c4a77e523e11a55ad0f02f7f408
parenta941ee4a0b9ce69e7dd0a8a0625a6b7f251dc732 (diff)
downloadaports-ee433416d80ca45107951a7372b66cd46583f5f4.tar.gz
aports-ee433416d80ca45107951a7372b66cd46583f5f4.tar.bz2
aports-ee433416d80ca45107951a7372b66cd46583f5f4.tar.xz
community/macchanger: add simple check and modernize
Add a simple test as upstream doesn't provide a test suite.
-rw-r--r--community/macchanger/APKBUILD15
1 files changed, 8 insertions, 7 deletions
diff --git a/community/macchanger/APKBUILD b/community/macchanger/APKBUILD
index 3d1c76d569..efe19246f0 100644
--- a/community/macchanger/APKBUILD
+++ b/community/macchanger/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=macchanger
pkgver=1.7.0
-pkgrel=0
+pkgrel=1
pkgdesc="An utility for viewing/manipulating the MAC address of network interfaces"
url="https://github.com/alobbs/macchanger"
arch="all"
@@ -12,7 +12,7 @@ makedepends="linux-headers"
subpackages="$pkgname-doc"
source="https://github.com/alobbs/macchanger/releases/download/$pkgver/$pkgname-$pkgver.tar.gz
fix-caddr_t.patch"
-builddir="$srcdir"/$pkgname-$pkgver
+builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
@@ -21,18 +21,19 @@ build() {
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --localstatedir=/var || return 1
+ --localstatedir=/var
make
}
+check() {
+ cd "$builddir"
+ ./src/macchanger --help > /dev/null
+}
+
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
-md5sums="ca56f16142914337391dac91603eb332 macchanger-1.7.0.tar.gz
-85d5a1e909afb031c6ca3ffdc62747d4 fix-caddr_t.patch"
-sha256sums="dae2717c270fd5f62d790dbf80c19793c651b1b26b62c101b82d5fdf25a845bf macchanger-1.7.0.tar.gz
-044630d7bd01e56797095f61cb582f363faa4dc7df16e48f11ae257a1f556fbd fix-caddr_t.patch"
sha512sums="69f2008ace6ff8223ecf25805c08ddf42add9ed16c65f3bb57f74b8b0d080d584381ce79592d2ef581a9ba73f12624dae8db63dbb12e4875dfd29d828a4a5da3 macchanger-1.7.0.tar.gz
00d59ce7562f0f011bd00f68d6e9aa4dd09d1dfb1aff4cb7291602e02d7015fb1f5038037c638e79f8aaf3c4787ef549c83d60303512b7d983b7f2ab386ccd21 fix-caddr_t.patch"