Patches for aports can be sent to this list

3 2

[alpine-aports] [PATCH] testing/mdbook: new APKBUILD

Details
Message ID
<20190401002226.17668-1-sir@cmpwn.com>
Sender timestamp
1554078146
DKIM signature
missing
Download raw message
Patch: +31 -0
---
 testing/mdbook/APKBUILD | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 testing/mdbook/APKBUILD

diff --git a/testing/mdbook/APKBUILD b/testing/mdbook/APKBUILD
new file mode 100644
index 0000000000..0fce856e1c
--- /dev/null
+++ b/testing/mdbook/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Drew DeVault <sir@cmpwn.com>
+pkgname=mdbook
+pkgver=0.2.3
+pkgrel=0
+pkgdesc="mdBook is a utility to create modern online books from Markdown files"
+url="https://rust-lang-nursery.github.io/mdBook"
+arch="all"
+license="MPL-2.0"
+depends=""
+makedepends="rust cargo"
+source="$pkgname-$pkgver.tar.gz::https://github.com/rust-lang-nursery/mdBook/archive/v$pkgver.tar.gz"
+builddir="$srcdir/mdBook-$pkgver"
+export CARGO_HOME="$srcdir"/cargo
+export RUSTFLAGS="-C target-feature=-crt-static"
+
+build() {
+	cd "$builddir"
+	cargo build --release --verbose
+}
+
+check() {
+	cd "$builddir"
+	cargo test --all --release --verbose
+}
+
+package() {
+	cd "$builddir"
+	install -Dm755 target/release/mdbook "$pkgdir"/usr/bin/mdbook
+}
+
+sha512sums="4d339a8f51dd5e80950b0b40ba95225828d3a698ebacef1dd7de0e6771fb74111e821c1b384b334c23d54e8a21ccc14fbefe34081a4e25ecdb2823d42c9ca9b0  mdbook-0.2.3.tar.gz"
-- 
2.21.0



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Leonardo
Details
Message ID
<e80d2317-fb74-dc7e-ebad-2f1eb03854cf@gmail.com>
In-Reply-To
<20190401002226.17668-1-sir@cmpwn.com> (view parent)
Sender timestamp
1554296759
DKIM signature
missing
Download raw message
Hi,

On 4/1/19 2:22 AM, Drew DeVault wrote:
> ---
>   testing/mdbook/APKBUILD | 31 +++++++++++++++++++++++++++++++
>   1 file changed, 31 insertions(+)
>   create mode 100644 testing/mdbook/APKBUILD

it segfaults for me:

     Updating crates.io index
Segmentation fault
 >>> ERROR: mdbook: build failed

Also arch must be restricted to "x86_64" due to rust.

Thanks!

/eo



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---

[alpine-aports] [PATCH v2] testing/mdbook: new APKBUILD

Details
Message ID
<20190404140901.20204-1-sir@cmpwn.com>
In-Reply-To
<e80d2317-fb74-dc7e-ebad-2f1eb03854cf@gmail.com> (view parent)
Sender timestamp
1554386941
DKIM signature
missing
Download raw message
Patch: +31 -0
---
This addressed the arch issue, but I'm unable to reproduce the cargo
segfault when I build this on my machine.

 testing/mdbook/APKBUILD | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 testing/mdbook/APKBUILD

diff --git a/testing/mdbook/APKBUILD b/testing/mdbook/APKBUILD
new file mode 100644
index 0000000000..1cb9e1ecd8
--- /dev/null
+++ b/testing/mdbook/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Drew DeVault <sir@cmpwn.com>
+pkgname=mdbook
+pkgver=0.2.3
+pkgrel=0
+pkgdesc="mdBook is a utility to create modern online books from Markdown files"
+url="https://rust-lang-nursery.github.io/mdBook"
+arch="x86_64"
+license="MPL-2.0"
+depends=""
+makedepends="rust cargo"
+source="$pkgname-$pkgver.tar.gz::https://github.com/rust-lang-nursery/mdBook/archive/v$pkgver.tar.gz"
+builddir="$srcdir/mdBook-$pkgver"
+export CARGO_HOME="$srcdir"/cargo
+export RUSTFLAGS="-C target-feature=-crt-static"
+
+build() {
+	cd "$builddir"
+	cargo build --release --verbose
+}
+
+check() {
+	cd "$builddir"
+	cargo test --all --release --verbose
+}
+
+package() {
+	cd "$builddir"
+	install -Dm755 target/release/mdbook "$pkgdir"/usr/bin/mdbook
+}
+
+sha512sums="4d339a8f51dd5e80950b0b40ba95225828d3a698ebacef1dd7de0e6771fb74111e821c1b384b334c23d54e8a21ccc14fbefe34081a4e25ecdb2823d42c9ca9b0  mdbook-0.2.3.tar.gz"
-- 
2.21.0



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---

[alpine-aports] Re: [PATCH v2] testing/mdbook: new APKBUILD

Leonardo
Details
Message ID
<ab9413f7-0532-0d89-e1e8-2766bbc42c58@gmail.com>
In-Reply-To
<20190404140901.20204-1-sir@cmpwn.com> (view parent)
Sender timestamp
1554467638
DKIM signature
missing
Download raw message
Hi,

On 4/4/19 4:09 PM, Drew DeVault wrote:
> ---
> This addressed the arch issue, but I'm unable to reproduce the cargo
> segfault when I build this on my machine.


pushed as-is and it went through on the builders.

Thanks!


/eo




---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---