blob: 5eeed2925b14851e87b8f9bd23c5e283d8ad857b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=svgcleaner-git
pkgver=0.8.0.342
pkgrel=1
pkgdesc="Program for reducing size of svg images without loss"
arch=('i686' 'x86_64')
url="https://github.com/RazrFalcon/SVGCleaner"
license=('GPL2')
depends=('gcc-libs')
makedepends=('git' 'rust' 'cargo')
conflicts=('svgcleaner')
provides=('svgcleaner')
source=('git+https://github.com/RazrFalcon/SVGCleaner.git')
md5sums=('SKIP')
_gitname="SVGCleaner"
pkgver() {
cd "$srcdir"/"$_gitname"
printf "%s.%s" $(awk -F= '/version/ {print $2}' Cargo.toml|head -1|tr -d \") $(git rev-list --count HEAD)
}
build() {
cd "$srcdir"/"$_gitname"
cargo clean
cargo build --release --verbose
}
package() {
cd "$srcdir"/"${_gitname}"/target/release
install -Dm755 svgcleaner "$pkgdir"/usr/bin/svgcleaner
}
|