pkgsrc/textproc/paperoni/Makefile
pin 0223a99a9c textproc/paperoni: import package
Paperoni is a web article downloader written in Rust.
It takes a url, downloads the article content from it and saves it to an epub.

The project is in alpha release so it might crash when you use it.
Please open an issue if it does.
2021-02-24 13:17:28 +00:00

30 lines
801 B
Makefile

# $NetBSD: Makefile,v 1.1 2021/02/24 13:17:28 pin Exp $
DISTNAME= v0.3.0-alpha1
PKGNAME= paperoni-0.3.0
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GITHUB:=hipstermojo/}
GITHUB_PROJECT= paperoni
GITHUB_TAG= v0.3.0-alpha1
MAINTAINER= pin@NetBSD.org
HOMEPAGE= https://github.com/hipstermojo/paperoni/
COMMENT= Article extractor in Rust
LICENSE= mit
.include "cargo-depends.mk"
USE_LANGUAGES+= c
INSTALLATION_DIRS= bin
MAKE_ENV+= OPENSSL_DIR=${BUILDLINK_PREFIX.openssl:Q}
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib
MAKE_ENV+= RUSTFLAGS=${RUSTFLAGS:Q}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/paperoni ${DESTDIR}${PREFIX}/bin
.include "../../lang/rust/cargo.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"