diff options
author | Philipp Claßen | 2018-12-01 23:57:01 +0100 |
---|---|---|
committer | Philipp Claßen | 2018-12-02 00:05:29 +0100 |
commit | 86cf0bd23c4e65fae649ce19f59291694698c60a (patch) | |
tree | 8f5f9d206a218234f34a322ee9a2c6a5ec9d3650 | |
download | aur-86cf0bd23c4e65fae649ce19f59291694698c60a.tar.gz |
Initial version
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 47 | ||||
-rw-r--r-- | disable-analytics.patch | 11 |
3 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a896928f3f78 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by mksrcinfo v8 +# Sat Dec 1 23:00:55 UTC 2018 +pkgbase = buckaroo + pkgdesc = A C++ package manager + pkgver = 1.5.0 + pkgrel = 1 + url = https://github.com/LoopPerfect/buckaroo + arch = any + license = MIT + depends = java-runtime + depends = buck + source = https://github.com/LoopPerfect/buckaroo/archive/v1.5.0.tar.gz + source = disable-analytics.patch + sha256sums = e8c2bc83b967b49840c370a61c862ef3c63146ef4b4e6de901f9d6abb91025b0 + sha256sums = 9b8eb3b92afb718b151859379d409b5329bd02e7363cc298c444fd6db35b4478 + +pkgname = buckaroo + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6e28084e59a1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Philipp Claßen <philipp.classen@posteo.de> +pkgname=buckaroo +pkgver=1.5.0 +pkgrel=1 +pkgdesc="A C++ package manager" +arch=('any') +url="https://github.com/LoopPerfect/buckaroo" +license=('MIT') +depends=('java-runtime' 'buck') +makedepends=('') + +source=("https://github.com/LoopPerfect/${pkgname}/archive/v${pkgver}.tar.gz" + disable-analytics.patch) +sha256sums=('e8c2bc83b967b49840c370a61c862ef3c63146ef4b4e6de901f9d6abb91025b0' + '9b8eb3b92afb718b151859379d409b5329bd02e7363cc298c444fd6db35b4478') + +prepare() { + # Make telemetry an opt-in feature by omitting the "analytics" + # property in the default configuration. + # + # If you want to enable it to support the development, add the + # following property to "~/.buckaroo/buckaroo.json" (this config + # will be created automatically after the first run): + # + # "analytics": "https://analytics.buckaroo.pm" + # + # For more details, see the documentation: + # https://buckaroo.readthedocs.io/en/latest/installation.html#analytics + patch -Np1 -i "${srcdir}/disable-analytics.patch" +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + buck build :buckaroo-cli +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + install -Dm644 buck-out/gen/buckaroo-cli.jar ${pkgdir}/usr/lib/${pkgname}/buckaroo-cli.jar + + mkdir -p ${pkgdir}/usr/bin + printf "#!/bin/sh\njava -jar /usr/lib/%s/buckaroo-cli.jar \"\$@\"\n" ${pkgname} > "${pkgdir}/usr/bin/buckaroo" + chmod 755 "${pkgdir}/usr/bin/buckaroo" + + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/disable-analytics.patch b/disable-analytics.patch new file mode 100644 index 000000000000..cbf8b41d3016 --- /dev/null +++ b/disable-analytics.patch @@ -0,0 +1,11 @@ +diff -ura src/buckaroo-1.5.0/src/main/resources/com.loopperfect.buckaroo/DefaultConfig.txt src.new/buckaroo-1.5.0/src/main/resources/com.loopperfect.buckaroo/DefaultConfig.txt +--- src/buckaroo-1.5.0/src/main/resources/com.loopperfect.buckaroo/DefaultConfig.txt 2018-11-09 16:02:51.000000000 +0100 ++++ src.new/buckaroo-1.5.0/src/main/resources/com.loopperfect.buckaroo/DefaultConfig.txt 2018-12-01 20:41:44.525516188 +0100 +@@ -4,6 +4,5 @@ + "name": "buckaroo-recipes", + "url": "https://github.com/LoopPerfect/buckaroo-recipes.git" + } +- ], +- "analytics": "https://analytics.buckaroo.pm" ++ ] + } |