summaryrefslogtreecommitdiffstats
path: root/testing/unetbootin/APKBUILD
blob: d2fc9481d667df7886ba6a163839e4d353bb4882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=unetbootin
pkgver=583
pkgrel=0
pkgdesc="tool for building USB install media"
url="http://unetbootin.sourceforge.net/"
arch="all"
license="GPL"
depends="syslinux p7zip"
depends_dev=""
makedepends="qt-dev $depends_dev"
install=""
subpackages="$pkgname-lang"
source="http://unetbootin.sourceforge.net/unetbootin-source-clean-latest.tar.gz
	allow-ntfs.patch"

_builddir="$srcdir"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	lupdate unetbootin.pro
	lrelease unetbootin.pro
	qmake "DEFINES += NOSTATIC" "RESOURCES -= unetbootin.qrc"
	make
}

package() {
	cd "$_builddir"
	install -D -m755 "$srcdir"/unetbootin "$pkgdir"/usr/bin/unetbootin
}

lang() {
	arch="noarch"
	cd "$_builddir"
	install -D -m644 "$srcdir"/unetbootin_*.qm "$subpkgdir"/usr/share/unetbootin
}

md5sums="ad35d814b8f5d9bf4a3563cacbf20296  unetbootin-source-clean-latest.tar.gz
a7d9ea8ed464600bc3d5b018ad6024f6  allow-ntfs.patch"
sha256sums="0fba985a6d4a7a4c388cb99d100cb46fbd9bbae831501ad887a8d5f148a24029  unetbootin-source-clean-latest.tar.gz
7e1153938a868d390bb0b54ade22299696e2d5c7a9d1347ecbe9d33d097e0b7b  allow-ntfs.patch"
sha512sums="1106938218e965f6b6e7a86a8998642e824c6fb2a5b0cf79869151d7a768daa61a18c7308e646965315f7c83390e6a8d9e077c13ce6e94e748b77b10115b0bab  unetbootin-source-clean-latest.tar.gz
7b5d415a226356697d7e4ce18d8e9cc4e7c5357ef94fc7a063a320f1f2fa5d03109bd399fafe4565144327643284d3b3ddbf57568cccf34f81e0bd61e151208b  allow-ntfs.patch"