pmaports/heimdall/APKBUILD
Oliver Smith 1c0ff6aa23 Put postmarketOS aports inside pmbootstrap repo
Later, the aports folder will probably get split up in its own repository.
But right now this is simply convenient.
2017-05-26 22:26:25 +02:00

37 lines
1.2 KiB
Text

pkgname=heimdall
pkgver=1.4.1
pkgrel=4
pkgdesc="Flasher for Samsung Galaxy S devices"
url="https://github.com/Benjamin-Dobell/Heimdall"
arch="all"
license="MIT"
depends=""
makedepends="libusb-dev"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/Benjamin-Dobell/Heimdall/archive/v${pkgver}.tar.gz
heimdall_flash_kernel.sh heimdall_wait_for_device.sh"
options="!check"
_builddir="$srcdir"/Heimdall-$pkgver
build() {
cd $_builddir
cd libpit/
./configure --prefix=/usr
make || return 1
cd ../heimdall/
./configure --prefix=/usr
make || return 1
}
package() {
cd "$_builddir/heimdall"
make PREFIX=/usr DESTDIR="$pkgdir/" install || return 1
for i in heimdall_flash_kernel.sh heimdall_wait_for_device.sh; do
install -Dm755 "$srcdir"/"$i" "$pkgdir"/usr/bin/"$i"
done
}
sha512sums="2f1f49b0ad7bd5f4359893359b26024fe0cce84afed3878e42d902eb4dee487a44e351247d57e4af143ad728abd6c664df688246fcf7b96b9f3841cd16594296 heimdall-1.4.1.tar.gz
a75677d4c5559bf8233a48d1b38bf91e4125717a85e1ea6d283d2d1e052c2a96228818a71f8b90adbda049b6d5b5065f7265ffc2e05cafd2ce9717bfc8ac8716 heimdall_flash_kernel.sh
45e742bb3a8c8d0bc6806a4e9f860b04f255cad72a8602c04759178284c66e0a90d3ea22249b5fa69de1dd1d6ecd6221adaa63d611aa20d2a54aa20868e86a9f heimdall_wait_for_device.sh"