Skip to content

Commit

Permalink
New Package: citations-0.5.1
Browse files Browse the repository at this point in the history
Closes #38770
  • Loading branch information
misuchiru03 authored and abenson committed Oct 20, 2022
1 parent ef42f9f commit 37c015f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions srcpkgs/citations/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Template file for 'citations'
pkgname=citations
version=0.5.1
revision=1
build_style=meson
build_helper=rust
hostmakedepends="glib-devel gettext rust cargo pkg-config
gtk-update-icon-cache gtk4-update-icon-cache desktop-file-utils"
makedepends="libadwaita-devel gtk4-devel openssl-devel
rust-std poppler-glib-devel gtksourceview5-devel"
short_desc="Manage your bibliography using BibTeX format"
maintainer="Alex Childs <misuchiru03+github@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://gitlab.gnome.org/World/citations"
distfiles="https://gitlab.gnome.org/World/citations/-/archive/${version}/citations-${version}.tar.gz"
checksum=77ac6a7cc442de74eccfc3f07687803cd1feca2da348753eddd34404b94bf253
_meson_builddir="${XBPS_BUILDDIR}/citations-${version}/build"

# Allows the cross build to know where the file is placed--build.ninja does not account for cross build
pre_build() {
if [ "${CROSS_BUILD}" ]; then
vsed -i build/build.ninja -e 's, && cp src/release/citations src/citations,,'
fi
}

# Take the cross-build folder into account when copying the file for the install
post_build() {
pwd
if [ "${CROSS_BUILD}" ]; then
cp -r build/src/*-linux-*/release/citations build/src/citations
fi
}

0 comments on commit 37c015f

Please sign in to comment.