diff options
author | anthraxx | 2016-10-21 00:45:24 +0200 |
---|---|---|
committer | anthraxx | 2016-10-21 00:45:24 +0200 |
commit | 971c6e7833fbe987abe46147723e7b7b7a3f6545 (patch) | |
tree | 25837fca8a30f04afced3279efe55a1497434fed | |
parent | 74e9c1b35b11f4801976bf11510d4b843229599a (diff) | |
download | aur-971c6e7833fbe987abe46147723e7b7b7a3f6545.tar.gz |
upgpkg: firmware-mod-kit 0.99-7
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 29 insertions, 23 deletions
@@ -1,16 +1,17 @@ pkgbase = firmware-mod-kit - pkgdesc = This kit allows for easy deconstruction and reconsutrction of firmware images for various embedded devices. + pkgdesc = Allows easy deconstruction and reconsutrction of firmware images for various embedded devices pkgver = 0.99 - pkgrel = 6 + pkgrel = 7 url = http://code.google.com/p/firmware-mod-kit/ arch = i686 arch = x86_64 license = GPL depends = python2-magic - provides = firmware-mod-kit + depends = zlib + depends = xz options = !strip - source = https://firmware-mod-kit.googlecode.com/files/fmk_099.tar.gz - md5sums = 91bd2cb3803880368af369d07271b5b9 + source = firmware-mod-kit-0.99.tar.gz::https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/firmware-mod-kit/fmk_099.tar.gz + sha512sums = a5261935e42446568c0c0d4c4fc1beff18c5aa7b85b1aa3398dfeaf80c8bdbb4fb2a6fb4945defc29599d6e58f1553e80e8bb755da4d98f79e99447f0c3414b1 pkgname = firmware-mod-kit @@ -1,28 +1,33 @@ -# Maintainer: Antonio Vázquez <antoniovazquezblanco[at]gmail[dot]com> +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: Antonio Vázquez <antoniovazquezblanco[at]gmail[dot]com> pkgname=firmware-mod-kit pkgver=0.99 -pkgrel=6 -pkgdesc="This kit allows for easy deconstruction and reconsutrction of firmware images for various embedded devices." -provides=('firmware-mod-kit') -source=('https://firmware-mod-kit.googlecode.com/files/fmk_099.tar.gz') -depends=('python2-magic') -url="http://code.google.com/p/firmware-mod-kit/" -license=('GPL') +pkgrel=7 +pkgdesc='Allows easy deconstruction and reconsutrction of firmware images for various embedded devices' +url='http://code.google.com/p/firmware-mod-kit/' arch=('i686' 'x86_64') -md5sums=('91bd2cb3803880368af369d07271b5b9') -options=(!strip) +license=('GPL') +depends=('python2-magic' 'zlib' 'xz') +options=('!strip') +source=(${pkgname}-${pkgver}.tar.gz::https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/firmware-mod-kit/fmk_099.tar.gz) +sha512sums=('a5261935e42446568c0c0d4c4fc1beff18c5aa7b85b1aa3398dfeaf80c8bdbb4fb2a6fb4945defc29599d6e58f1553e80e8bb755da4d98f79e99447f0c3414b1') + +prepare() { + cd fmk/src + sed -r 's|(/usr/bin/env) python|\1 python2|g' -i binwalk-1.0/src/bin/binwalk-script +} build() { - cd $srcdir/fmk/src - sed -i 's/#!\/usr\/bin\/env python/#!\/usr\/bin\/env python2/' binwalk-1.0/src/bin/binwalk-script - ./configure || return 1 - make || return 1 - return 0 + cd fmk/src + ./configure + make } package() { - cd $srcdir - mkdir -p $pkgdir/opt/ - mv fmk $pkgdir/opt/firmware-mod-kit + install -d "${pkgdir}/opt" + find fmk -name '*.o' -delete + mv fmk "${pkgdir}/opt/firmware-mod-kit" } + +# vim: ts=2 sw=2 et: |