aboutsummaryrefslogtreecommitdiffstats
path: root/main/s390-tools/APKBUILD
blob: 55ca18df45ed60c824c4512c4403bd938bc5e555 (plain) (blame)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Tuan Hoang <tmhoang@linux.ibm.com>
pkgname=s390-tools
pkgver=2.15.1
pkgrel=0
pkgdesc="Tools for use with the s390 Linux kernel and device drivers"
url="https://github.com/ibm-s390-tools/s390-tools"
arch="s390x"
license="MIT"
options="!check" # No test suite
depends="bash"
makedepends="linux-headers libexecinfo-dev zlib-dev fuse-dev ncurses-dev openssl-dev
	cryptsetup-dev json-c-dev net-snmp-dev curl-dev"
triggers="$pkgname.trigger=/boot"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ibm-s390-tools/s390-tools/archive/v$pkgver.tar.gz
	0002-musl-fixes.patch
	0004-missing-time-header.patch
	0006-define-path-mounted.patch
	0007-tunedasd-no-need-error-h.patch
	0008-iucvterm-no-nls.patch
	0009-link-libexecinfo.patch
	0010-musl-s390x-signal-def.patch

	0200-dasdinfo-gnu-ext-hack.patch
	0300-disable-program-using-gnu-ext.patch
	0400-busybox-compat.patch
	0500-remove-lib64.patch
	bash.patch
	argz.patch

	argz.c
	argz.h
	Makefile.argz
	mk-s390-cdboot.c
	"

build() {
	mkdir -p "$builddir"/libargz
	cp "$srcdir"/argz.h "$builddir"/include/argz.h
	cp "$srcdir"/argz.c "$builddir"/libargz/argz.c
	cp "$srcdir"/Makefile.argz "$builddir"/libargz/Makefile
	make V=1 CFLAGS="$CFLAGS -D_GNU_SOURCE" \
		HAVE_GLIB=0 \
		HAVE_PFM=0 \
		DISTRELEASE="Alpine" \
		LIBEXECINFO_LIBS="-lexecinfo"
	gcc -Wall -o mk-s390-cdboot "$srcdir"/mk-s390-cdboot.c
}

package() {
	make DESTDIR="$pkgdir" DISTRELEASE="Alpine" \
		HAVE_GLIB=0 \
		HAVE_PFM=0 \
		install
	install -Dm755 mk-s390-cdboot "$pkgdir"/sbin/mk-s390-cdboot
}

sha512sums="a62ab491bac153b78161b7b1fb80ef1aa5ddb8657a9329f5ad9f8a16f106a9a9af1a37ceb328ed34eb44adb406207faec12ed0fb6648b5198498bf2fd411f0cf  s390-tools-2.15.1.tar.gz
c114bbd55833fa82f7cce3beb854141f59dbb187ba59cc829378940cf738d0748314aef3fccd27ff2bb75a0f681989a997731172fa01fe0e1da0377bc07bfdb2  0002-musl-fixes.patch
6e0f8d999eef08677e9f80d1a07e01556474723b9b00435d463428eee22babe4489257ad5c8fffb650bd0fd5714cdac01dc926e1402f9741fc1327d177ece897  0004-missing-time-header.patch
e41548d83d53e4371afcee3601505520506d05b932aeb91f1ca86e589c010fa5d22777d4617c1e25adfc04fbcf45289cf65a8100108c878323e125e312579220  0006-define-path-mounted.patch
ecfbba213d2a705e2a5a2697090f659670ca1a12e4568c1de87f17d11d72a1a6c524b23b4db25c0558b4e8239c27afddb94d8887d93170b359d77985018f9b9c  0007-tunedasd-no-need-error-h.patch
bdbeb6f3873ede82487c7e4fcac84aa2bf8a922991ec32d029a64cd7142625f5a99920db0f1b6935805d7371ae5a7640c5ea577969937dd96c4f4f996b909ac3  0008-iucvterm-no-nls.patch
c8a1ffcdd8d3ff278d86e37ef08a46f6df0b5c39dd3e26a64a8fc27c6a5dfdb658aa0733e149868153f276b36488f0814b5f8612601e317adf092492eaef55c6  0009-link-libexecinfo.patch
f785a899583de8592422e5e46c4e4893196e3c7885e4a0bb4c717c3587db8c1a4c264c80337b1d0c31b39150f3c3b71b876fe156086ace3a542c12678ae7c85e  0010-musl-s390x-signal-def.patch
f5e06e28f77c44f591d74f383ce308a6bfb129b00b291601f2be8866dd1382c597348794be2109c9dc0fa8fdbbee509d036fa6c215e73c4c99f476d3c1cb5a83  0200-dasdinfo-gnu-ext-hack.patch
a837df6e526aaaa1309c37238a4a198c60355bf57b321c49ef0df1a84ffd1e28e9f56d3d123a91a53ccc724027fd5cccc06132764bbdcb26f349115f21b6aaaa  0300-disable-program-using-gnu-ext.patch
038a5cb43f35fd11255160b09deebfcadad90f471d38e1c91c53ba5c3a1f6748447e3cfedacd54cd726b3a533ed632ac160094a98b861bee59ec005445d0b45c  0400-busybox-compat.patch
fff9b7c4d83b11cfb6ceed2bd7bd9039d0469c02e4bd362c87c112d86fc975da6758a144aec2d21c7286f6ede22008b60e6e1781a4b52c0a4b10627ec1e52b63  0500-remove-lib64.patch
1627d1aa9ac485b3271c0629ec573ce1fdebb72d4ecb9ea9af7968a6a568cf0c6d728afff4389551ab80e0b863c971df18e7781d8280ade4653ca5bd03ade8dc  bash.patch
76ac09da991da94e74639fbdc1a3cafcc3c92587c0a9b3eef27cc5349c0f0e319d9ff0ec7ef751aaf5271c24a92ef6cd27f1c30fa83552acf5122f9845f8f72d  argz.patch
2e573314d4c4ed90b61da28de22ae8e2f68ced5489f7e5e0b30f51b776efaf40c1f781d3b485418572d8f33a169fa6946b7358cbd4a7de5a3724b20ed622262b  argz.c
50bd5c0f555963dadbfaa72df5bf0801a48743d6d0feddb6ebfa4ffa410196216c1860d3a577361e035169fea4217aef3f04d69394c59db65b60c5ea29eba8cb  argz.h
5e19ccfce59a2a79863db676b0ea4280cb9016cda1a30dc233526f52425c305410dd148453b75c2613acac37e364305ee25f8e545d57c5059cca19a13bac2a5e  Makefile.argz
349eb06895016d16194819c4a04f604720f1373ea61a9bc4c58467281c9a2ed3539bd4e8b6984f4e5177630dbe8b928aa95912c9a3e3b0e1fe275d59f9fe573d  mk-s390-cdboot.c"