# Contributor: Natanael Copa # Maintainer: Tuan M. Hoang pkgname=s390-tools pkgver=1.37.1 pkgrel=0 pkgdesc="Utilities for Linux on IBM z Systems" url="http://www.ibm.com/developerworks/linux/linux390/s390-tools.html" arch="s390x" license="GPL-2.0-or-later" depends_dev="" makedepends="$depends_dev linux-headers libexecinfo-dev zlib-dev fuse-dev ncurses-dev" triggers="$pkgname.trigger=/boot" install="$pkgname.post-install $pkgname.post-upgrade" subpackages="$pkgname-doc" source="http://download.boulder.ibm.com/ibmdl/pub/software/dw/linux390/ht_src/$pkgname-$pkgver.tar.bz2 0001-zipl-flags.patch 0002-musl-fixes.patch 0003-major-minor.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 0100-zipl-no-pie.patch 0101-zipl-dont-optimize-size.patch 0200-dasdinfo-gnu-ext-hack.patch 0300-disable-program-using-gnu-ext.patch zconf-shell.patch mk-s390-cdboot.c " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" make -j1 V=1 CFLAGS="$CFLAGS -D_GNU_SOURCE" \ HAVE_SNMP=0 \ HAVE_PFM=0 \ LIBEXECINFO_LIBS="-lexecinfo" gcc -Wall -o mk-s390-cdboot "$srcdir"/mk-s390-cdboot.c } package() { cd "$builddir" make HAVE_SNMP=0 HAVE_PFM=0 DESTDIR="$pkgdir" install install -Dm755 mk-s390-cdboot "$pkgdir"/sbin/mk-s390-cdboot } sha512sums="43a255171956aad3d04e666a2ab949f392bb8d8faca0a8f8a4714f9eabbc93e625ed0ec0cae69f05ef6a3ab86982de2a757184b771b60e927d86c931fb5cdf89 s390-tools-1.37.1.tar.bz2 3e1d0829e13bea69f48c556c2454b2927ffc59a7f4a04f7ebce41b9b5ed95ce963922fec9981e7ae62be801abbdc2cd27498399d0c4b8f9d10fae82dc3a9df85 0001-zipl-flags.patch 658b804edfef85e63c5df7a23dccff5a53c3ab5b310b81b1e584c672070d7cec64ac78624de282e535227517e405ff33003a2ddc5f1f4ec7d4edf6e125305638 0002-musl-fixes.patch d8936addbf7713d14a44f9137c19769eb66f9c1d8ddc7dc58a7abbe4791045ed3c6eca88e2bbf8a6d3b18d8e437481df95d1827722bb1f7e093aa86753be85d1 0003-major-minor.patch 5cadad403b0bce9c92e326612b2fa6d32b15b550ef9241fd77cc3b86e6e443087c29c539727a9584896624317cde9276543aeed4fa62ff1db233f8cfd8872d03 0004-missing-time-header.patch 984fd24ff1bf2d77f6aca77e4a75334ad21a9e36ce27fabb848d82a8e68446e2effeb16a725d5b93ae178ac11379f83a003c8c0d9e408cf96419873741517c3e 0006-define-path-mounted.patch a0ca14c6de2415a725c44e067157c2b5a8db582f4eadbd355fadab5e050870073cf5f5e11212fd046bf24841ed60b84e1475fed115d1e307b8fc1f2da69e5fbd 0007-tunedasd-no-need-error-h.patch bdbeb6f3873ede82487c7e4fcac84aa2bf8a922991ec32d029a64cd7142625f5a99920db0f1b6935805d7371ae5a7640c5ea577969937dd96c4f4f996b909ac3 0008-iucvterm-no-nls.patch 754ae56dc45326eccd9b5e7be5c1faffeeee7d8ff84ed3275269e28324b65c0437ebf6cff55dea2188a06f09a798a00c9792ccc41a805e1d24824a4d7334bec0 0009-link-libexecinfo.patch 43edeb7f3ab3f5bbc6cd43e6d04deafcfa18211886f3801a226d46679cd70fc709732d5f41d8cc421f9fb0b441a395ebd2a57512f97662531a3050819c97ba1e 0010-musl-s390x-signal-def.patch d879173250fc0cabef198785923248e6832158e38d6ea9ef615f14e2d6698810b54c38c8327f20b2c43d8d509a274b27a7c0ad999a0c0bed2743715f21ab859a 0100-zipl-no-pie.patch 1cbbe3fe265c7d4164143d24c532c18b354be4bc295ad24064d379660e43a475b7d678b458cdf74ffdb44d6cd38a497dbe00758d688c547c6ece63b6dee091b7 0101-zipl-dont-optimize-size.patch 98f5a150e30752d2bec6447d8f24b89a3afda43c31ebe3e6ce940ac398ae9ebfab2c516e05686e7969461c7cf7e467e1221981a5499a9bb8a5aef2f265ec8b45 0200-dasdinfo-gnu-ext-hack.patch 6736ca9deb25838511e715e96d1f5bfc283460689e767181463d1827c80be200b1375708ff48772599083b14f74594f7053cf30fcc6c93ba7fa5dfae832434de 0300-disable-program-using-gnu-ext.patch 4fd96891cc2dc868793003a50eae3258a82db1c840b6d2a63107586e96f6c68686e54b625f5395190af606d996c812582938e9148ce51bdb08075f4fdbe96973 zconf-shell.patch 349eb06895016d16194819c4a04f604720f1373ea61a9bc4c58467281c9a2ed3539bd4e8b6984f4e5177630dbe8b928aa95912c9a3e3b0e1fe275d59f9fe573d mk-s390-cdboot.c"