aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/unetbootin/APKBUILD
blob: 5d1f4928b0b7b1da50e99d377ddb45144095afb7 (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=608
pkgrel=0
pkgdesc="tool for building USB install media"
url="http://unetbootin.sourceforge.net/"
arch="x86 x86_64"
license="GPL"
depends="syslinux p7zip"
depends_dev=""
makedepends="qt-dev $depends_dev"
install=""
subpackages="$pkgname-lang"
source="http://softlayer-ams.dl.sourceforge.net/project/unetbootin/UNetbootin/$pkgver/unetbootin-source-$pkgver.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="8c0f9f565a3dc0b093a0a9afd58fa9a7  unetbootin-source-608.tar.gz
a7d9ea8ed464600bc3d5b018ad6024f6  allow-ntfs.patch"
sha256sums="ce99c5f60b1f66da0ceb41859ce9198d96b3061b949b167fc952d3951b632080  unetbootin-source-608.tar.gz
7e1153938a868d390bb0b54ade22299696e2d5c7a9d1347ecbe9d33d097e0b7b  allow-ntfs.patch"
sha512sums="d164537c96845eb90ac5aae1fa0c553c9392d778696e4818760cb11f78341e6a3ea6a05f702678583c5d680dc8fb1348cdc2b2dfba9bebfdf793779c23611d16  unetbootin-source-608.tar.gz
7b5d415a226356697d7e4ce18d8e9cc4e7c5357ef94fc7a063a320f1f2fa5d03109bd399fafe4565144327643284d3b3ddbf57568cccf34f81e0bd61e151208b  allow-ntfs.patch"