archrelease: copy trunk to community-any
[ArchLinux/community.git] / macchanger / repos / community-x86_64 / PKGBUILD
blob2bdb40ea37bdf4d73968257eafc29b5baeb780d6
1 # Maintainer: Kyle Keen <keenerd@gmail.com>
2 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
4 pkgname=macchanger
5 pkgver=1.7.0
6 pkgrel=5
7 pkgdesc="A small utility to change your NIC's MAC address"
8 arch=('x86_64')
9 #url="https://ftp.gnu.org/gnu/macchanger"
10 url="https://www.gnu.org/software/macchanger"
11 license=('GPL')
12 depends=('glibc')
13 source=("$pkgname-$pkgver.tgz::https://github.com/alobbs/macchanger/archive/$pkgver.tar.gz")
14 md5sums=('ebd3c24360454b2684c39d89dcaabac8')
15 sha256sums=('1d75c07a626321e07b48a5fe2dbefbdb98c3038bb8230923ba8d32bda5726e4f')
16 b2sums=('5dcd174152e77d342a49ac8d9aaa7bc4d8e0e940ddd0f78c0b4b5e8634b424a4e163d1d568238d169b3f962a9a7bc5e8a7caf4df3d1a949ae3aec75b715f696a')
18 prepare() {
19   cd "${srcdir}/${pkgname}-${pkgver}"
20   # FS#59021
21   sed -i 's|/dev/hwrng|/dev/random|' src/main.c
24 build() {
25   cd "${srcdir}/${pkgname}-${pkgver}"
26   ./autogen.sh
27   ./configure --prefix=/usr \
28               --mandir=/usr/share/man \
29               --infodir=/usr/share/info
30   make
33 package() {
34   cd "${srcdir}/${pkgname}-${pkgver}"
36   make DESTDIR="${pkgdir}" install