summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/ccache/APKBUILD50
-rw-r--r--system/pigz/APKBUILD32
2 files changed, 82 insertions, 0 deletions
diff --git a/system/ccache/APKBUILD b/system/ccache/APKBUILD
new file mode 100644
index 000000000..6c14d092e
--- /dev/null
+++ b/system/ccache/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Dan Theisen <djt@hxx.in>
+pkgname=ccache
+pkgver=3.7.11
+pkgrel=0
+pkgdesc="A fast C/C++ compiler cache"
+url="https://ccache.dev/"
+arch="all"
+license="GPL-3.0+"
+depends=""
+checkdepends="bash perl"
+makedepends="zlib-dev"
+subpackages="$pkgname-doc"
+source="https://github.com/ccache/ccache/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz"
+
+prepare() {
+ default_prepare
+ update_config_sub
+}
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ make test
+}
+
+package() {
+ install -Dm 755 ccache "$pkgdir"/usr/bin/ccache
+ install -Dm 644 doc/ccache.1 "$pkgdir"/usr/share/man/man1/ccache.1
+
+ local link=
+ mkdir -p "$pkgdir"/usr/lib/ccache/bin
+
+ for link in cc gcc g++ cpp c++ ${CHOST}-cc ${CHOST}-gcc \
+ ${CHOST}-g++ ${CHOST}-cpp ${CHOST}-c++; do
+ ln -sf /usr/bin/ccache "$pkgdir"/usr/lib/ccache/bin/$link
+ done
+}
+
+sha512sums="47b71b3ab4b89bf9b6f6d15941c22d2207b369922f51f9a8fbf4e86554325053dccce669e1c1ed3c0019a7e0a3d610f399e52d3fee68b56111aa7c1b24132c11 ccache-3.7.11.tar.xz"
diff --git a/system/pigz/APKBUILD b/system/pigz/APKBUILD
new file mode 100644
index 000000000..20e656403
--- /dev/null
+++ b/system/pigz/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=pigz
+pkgver=2.7
+pkgrel=0
+pkgdesc="Parallel implementation of gzip"
+url="https://zlib.net/pigz/"
+arch="all"
+license="zlib"
+depends=""
+makedepends="zlib-dev cmd:which"
+subpackages="$pkgname-doc"
+source="https://zlib.net/pigz/pigz-$pkgver.tar.gz"
+
+build() {
+ make pigz
+}
+
+check() {
+ make test
+}
+
+package() {
+ mkdir -p "$pkgdir"/usr/bin
+ mkdir -p "$pkgdir"/usr/share/man/man1
+ for i in pigz unpigz; do
+ install -m755 $i "$pkgdir"/usr/bin
+ done
+ install -m644 pigz.1 "$pkgdir"/usr/share/man/man1
+}
+
+sha512sums="9f9f61de4a0307fc057dc4e31a98bd8d706d9e709ecde0be02a871534fddf6a1fe1321158aa72708603aaaece43f83d2423b127f7689b6219b23aea4f989e8f5 pigz-2.7.tar.gz"