[arch-commits] Commit in heimdall/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Tue May 30 19:28:39 UTC 2017
Date: Tuesday, May 30, 2017 @ 19:28:39
Author: arojas
Revision: 231408
Update to 1.4.2
Modified:
heimdall/trunk/PKGBUILD
----------+
PKGBUILD | 40 ++++++++++------------------------------
1 file changed, 10 insertions(+), 30 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-05-30 18:48:36 UTC (rev 231407)
+++ PKGBUILD 2017-05-30 19:28:39 UTC (rev 231408)
@@ -4,33 +4,25 @@
# Contributor: Victor Noel
# Contributor: ngoonee
pkgname=heimdall
-pkgver=1.4.1
-pkgrel=2
+pkgver=1.4.2
+pkgrel=1
pkgdesc='Tool suite used to flash firmware (aka ROMs) onto Samsung mobile devices'
arch=('i686' 'x86_64')
url='http://www.glassechidna.com.au/products/heimdall/'
license=('MIT')
-depends=('libusb' 'qt4')
+depends=('qt5-base')
+makedepends=('cmake')
optdepends=('android-udev: Udev rules to connect Android devices to your linux box')
source=("heimdall-${pkgver}.tar.gz::https://github.com/Benjamin-Dobell/Heimdall/archive/v${pkgver}.tar.gz"
'heimdall.desktop')
-md5sums=('22c911e9042f5ed8fd90cbeeb9589015'
- '4ba737aed98dd28c9bceb0723dbd7267')
+sha256sums=('589bef88f2597c8a84fe6fafbe928ddc9687438b5b54edd917d7df48c7e3eff8'
+ '439cea1a8976b9b589ffe4030a084243bcc5e937dcb9c571cdb94d3ff08b4fb4')
build() {
cd Heimdall-$pkgver
- cd libpit/
- ./configure --prefix=/usr
+ cmake . -DCMAKE_INSTALL_PREFIX=/usr
make
-
- cd ../heimdall/
- ./configure --prefix=/usr
- make
-
- cd ../heimdall-frontend/
- env OUTPUTDIR="/usr/bin" qmake-qt4 heimdall-frontend.pro
- make
}
package() {
@@ -42,19 +34,7 @@
install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Install heimdall command line tool
- cd heimdall/
-
- # Prevent make install from trying to reload udev
- # We'll do this the Arch way at package install time
- mv Makefile Makefile.orig
- sed -e 's/sudo service udev restart/echo sudo service udev restart/' <Makefile.orig >Makefile
-
- make DESTDIR="$pkgdir" install
- rm -rf "$pkgdir/lib/"
-
- # Install heimdall GUI front end
- cd ../heimdall-frontend
- # hack to place heimdall-frontend in /usr/bin
- sed -i 's|local\/||g' Makefile
- make INSTALL_ROOT="$pkgdir/" install
+ install -d "$pkgdir"/usr/bin
+ install -Dm755 bin/* "$pkgdir"/usr/bin/
+ install -Dm644 heimdall/60-heimdall.rules "$pkgdir"/usr/lib/udev/rules.d/60-heimdall.rules
}
More information about the arch-commits
mailing list