aboutsummaryrefslogblamecommitdiffstats
path: root/testing/mdcat/APKBUILD
blob: c2a487738d870c7fe278659a3b5156582a4d514d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                             
             
             
             
        

                                        


                                         
                    
                               
                            




                                


                                                                                                 




                                      
                                     


           
                                                                    







                                                                                            

 
                                                                                                                                                                  
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=mdcat
pkgver=0.22.2
pkgrel=0
pkgdesc="Cat for markdown"
url="https://github.com/lunaryorn/mdcat"
# s390x, mips, mips64 limited by cargo
# ppc64le fails to build 'ring v0.16.19'
arch="all !s390x !mips !mips64 !ppc64le" 
license="Apache-2.0"
makedepends="cargo openssl-dev"
checkdepends="py3-ansi2html"
subpackages="
	$pkgname-bash-completion
	$pkgname-zsh-completion
	$pkgname-fish-completion
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/lunaryorn/mdcat/archive/mdcat-$pkgver.tar.gz"
builddir="$srcdir/mdcat-mdcat-$pkgver"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -s -Dm0755 target/release/mdcat -t "$pkgdir"/usr/bin

	# Install the generated shell completion files
	install -Dm644 "$builddir"/target/release/build/mdcat-*/out/completions/mdcat.bash \
		-t "$pkgdir"/usr/share/bash-completion/completions
	install -Dm644 "$builddir"/target/release/build/mdcat-*/out/completions/_mdcat \
		-t "$pkgdir"/usr/share/zsh/site-functions
	install -Dm644 "$builddir"/target/release/build/mdcat-*/out/completions/mdcat.fish \
		-t "$pkgdir"/usr/share/fish/completions
}

sha512sums="949cd3c0d282ab0231c828d8423d20971321c65e7db28e14d4fa89e102eea9613a35f5937f455bec62463f0f50119385574ebe954a129d76b377f4fbbc7d38be  mdcat-0.22.2.tar.gz"