diff options
author | Jonathan Yantis | 2015-06-11 09:00:42 -0700 |
---|---|---|
committer | Jonathan Yantis | 2015-06-11 09:00:42 -0700 |
commit | 21dcbd85e9a8b66a45be366ee5b635dfa1fa3cb8 (patch) | |
tree | 23da315f47aeda36121edf899035f7abd9972cbe /PKGBUILD | |
download | aur-macchanger-git.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ced9cb8f1a22 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: jyantis <yantis@yantis.net> +# Contributor: Levi0x0 (@levi0x0x aur) + +pkgname=macchanger-git +pkgver=1.7.0.r46.f4f66e1 +pkgrel=1 +pkgdesc="GNU MAC Changer : A small utility to change your NIC's MAC address" +arch=('any') +url='https://github.com/alobbs/macchanger' +license=('GPL') +source=('git+https://github.com/alobbs/macchanger.git') +sha256sums=('SKIP') +depends=('glibc') +makedepends=('git') +provides=('macchanger') +conflicts=('macchanger') +install=macchanger.install + +pkgver() { + cd macchanger + printf "%s." "$(grep "AC_INIT(" configure.ac | awk 'BEGIN {FS = " "} {print $2}')" | sed -r 's/(\[|\])//g' | sed -r 's/(\(|\))//g' + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd macchanger + ./autogen.sh --prefix=/usr + make +} + +package() { + cd macchanger + + # We don't need anything related to git in the package + rm -rf .git* + + # Install License + install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + # Install Documentation + install -D -m644 README "${pkgdir}/usr/share/doc/${pkgname}/README" + + make DESTDIR="$pkgdir" install || return 1 +} + +# vim:set ts=2 sw=2 et: |