summaryrefslogtreecommitdiff
path: root/user/ccache/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-07-06 19:19:37 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-07-06 19:19:37 +0000
commitcdd7c92be92eb782d733a446e753ca89917bc7d5 (patch)
tree0d84fc7fa2f73746e84a849572151605b348bd63 /user/ccache/APKBUILD
parent5846d0776b625f7edbbbe552f2761bf72babd370 (diff)
parentc50636433139f26543aad061d54c3708b2a4e22a (diff)
downloadpackages-cdd7c92be92eb782d733a446e753ca89917bc7d5.tar.gz
packages-cdd7c92be92eb782d733a446e753ca89917bc7d5.tar.bz2
packages-cdd7c92be92eb782d733a446e753ca89917bc7d5.tar.xz
packages-cdd7c92be92eb782d733a446e753ca89917bc7d5.zip
Merge branch 'popular-demand' into master
Popular Demand Packages -- MR #1 See merge request adelie/packages!269
Diffstat (limited to 'user/ccache/APKBUILD')
-rw-r--r--user/ccache/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/user/ccache/APKBUILD b/user/ccache/APKBUILD
new file mode 100644
index 000000000..52cf944e4
--- /dev/null
+++ b/user/ccache/APKBUILD
@@ -0,0 +1,49 @@
+# 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.1
+pkgrel=0
+pkgdesc="A fast C/C++ compiler cache"
+url="https://ccache.dev/"
+arch="all"
+license="GPL-3.0+"
+makedepends="zlib-dev"
+checkdepends="bash perl"
+subpackages="$pkgname-doc"
+source="https://github.com/ccache/ccache/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2"
+
+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="68a716a91519020c1cd7efe07a36a7d8c040a8f26f627341e74fb6dffbf985389f949dad0b2cc35a78b37f5efdf1c112ccb3d23d8f379210c9adbaba6064763b ccache-3.7.1.tar.bz2"