pmaports/main/abuild-sign-noinclude/APKBUILD
Oliver Smith 54f977435d main/abuild-sign-noinclude: new aport (!81)
Builds abuild-sign and abuild-tar.static without any dependencies, so
they can be used outside of an Alpine Linux system. We need this for
build.postmarketos.org.
2018-12-13 09:13:07 +01:00

40 lines
1.7 KiB
Text

pkgname=abuild-sign-noinclude
pkgver=3.3.0_pre1
pkgrel=0
pkgdesc="self-contained abuild-sign to be used by non-Alpine systems"
url="https://git.alpinelinux.org/cgit/abuild/"
arch="x86_64"
license="GPL-2.0"
makedepends="openssl-dev zlib-dev pkgconf"
options="!check"
# first patch is being upstreamed here:
# https://github.com/alpinelinux/abuild/pull/49
source="https://dev.alpinelinux.org/archive/abuild/abuild-${pkgver}.tar.xz
0001-fix-abuild-tar.static-target.patch
0002-add-abuild-sign.noinclude-target.patch
0003-use-abuild-tar.static-from-script-directory.patch"
builddir="$srcdir/abuild-$pkgver"
prepare() {
default_prepare
cd "$builddir"
sed -i -e "/^CHOST=/s/=.*/=$CHOST/" abuild.conf
}
build() {
cd "$builddir"
make VERSION="$pkgver-r$pkgrel" abuild-tar.static abuild-sign.noinclude
}
package() {
cd "$builddir"
install -Dm755 abuild-tar.static "$pkgdir"/usr/bin/abuild-tar.static
install -Dm755 abuild-sign.noinclude "$pkgdir"/usr/bin/abuild-sign.noinclude
}
sha512sums="5d3c2c04a7d6ede2c08b524423f9594ced42d4d67f10327996a38e0782fc2de1f8086187aa9a9072df5c1aced540bdcf1b8002b832df4cf2c6a56f6f89657aa7 abuild-3.3.0_pre1.tar.xz
29aa05c145ac02fbb6be7378c8ba3cf25ec8f49898a6d755cd9cefa4ff1416914f03ca92320b06b602161e549bcfe376f059477eb9fc0722e9f634abf5d60a24 0001-fix-abuild-tar.static-target.patch
a7a207094a80856e0aa10591611ee6b7c235df165791574acbb010a3c7d593d8a918f157bbff2e885ffa159e5c777ab9bf4475447a846d78cd6ca81112ea271d 0002-add-abuild-sign.noinclude-target.patch
3253540dc0def37c31ace080e2e78a10516c903ed96eba950895e99e5143cd7d58ddbbfcfae2be37be8d31a53578291cac8fca8b6270faea630889646f31b2fd 0003-use-abuild-tar.static-from-script-directory.patch"