diff options
author | Caleb Maclennan | 2020-04-24 11:07:42 +0300 |
---|---|---|
committer | Caleb Maclennan | 2020-04-25 00:12:54 +0300 |
commit | a1ae00dc0de9ba87bc120512ad4a1ebf74be6825 (patch) | |
tree | 428843d640b9e64fbe23a6490d992e079d81ce96 | |
parent | 4fc27500f98fe80819efe0c47ffa850a0d1fed5d (diff) | |
download | aur-a1ae00dc0de9ba87bc120512ad4a1ebf74be6825.tar.gz |
upgpkg: casile-git 0.2.0.r53.g6d5f6ce-1
Rework package with Rust CLI wrapper and legit install
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 19 insertions, 6 deletions
@@ -1,10 +1,12 @@ pkgbase = casile-git pkgdesc = Caleb’s SILE publishing toolkit - pkgver = 0.2.0.r0.gba31e7d + pkgver = 0.2.0.r53.g6d5f6ce pkgrel = 1 url = https://github.com/sile-typesetter/casile arch = any - license = LGPL3 + license = AGPL3 + makedepends = rust + makedepends = cargo depends = bc depends = bcprov depends = cpdf @@ -1,12 +1,12 @@ # Maintainer: Caleb Maclennan <caleb@alerque.com> pkgname=casile-git -pkgver=0.2.0.r0.gba31e7d +pkgver=0.2.0.r53.g6d5f6ce pkgrel=1 pkgdesc='Caleb’s SILE publishing toolkit' arch=('any') url="https://github.com/sile-typesetter/${pkgname%-git}" -license=('LGPL3') +license=('AGPL3') depends=('bc' 'bcprov' # pdftk optdepend is required 'cpdf' @@ -51,6 +51,7 @@ depends=('bc' 'yq' 'zint' 'zsh') +makedepends=('rust' 'cargo') provides=("${pkgname%-git}") conflicts=("${provides[@]}") source=("$pkgname::git+$url.git") @@ -62,10 +63,20 @@ pkgver() { sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } +prepare() { + cd "$pkgname" + ./bootstrap.sh + sed -i -e '/dist_\(doc|license\)_DATA/d' Makefile.am +} + +build() { + cd "$pkgname" + ./configure --prefix /usr +} + package () { cd "$pkgname" - install -dm755 "$pkgdir/usr/share" - cp -a ./ "$pkgdir/usr/share/${pkgname%-git}" + make DESTDIR="$pkgdir" install install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.txt install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md CHANGELOG.md } |