gds-render/AUR/PKGBUILD

40 lines
1.3 KiB
Bash
Raw Normal View History

2018-07-25 11:19:15 +02:00
# Maintainer: Mario Hüttel <mario (dot) huettel (!) gmx (dot) net>
pkgname=gds-render
pkgver=20180725.001
pkgrel=1
pkgdesc="Conversion tool for converting GDS layout files into TikZ Code and PDF"
2018-07-25 11:25:58 +02:00
arch=('i686' 'x86_64')
2018-07-25 11:19:15 +02:00
url="https://git.shimatta.de/mhu/gds-render"
licence=('GPLv2')
depends=('glib2' 'gtk3' 'cairo')
makedepends=('cmake' 'git')
privides=('gds-render')
2018-07-25 11:25:58 +02:00
source=("${pkgname}-git"::"git+https://git.shimatta.de/mhu/gds-render.git")
2018-07-25 11:19:15 +02:00
sha1sums=('SKIP')
pkgver () {
_date=`date +"%Y%m%d"`
2018-07-25 11:25:58 +02:00
cd "${srcdir}/${pkgname}-git"
2018-07-25 11:19:15 +02:00
echo "$_date.$(git rev-list --count master).$(git rev-parse --short master)"
}
build () {
mkdir "$srcdir/$pkgname-git/build"
cd "$srcdir/$pkgname-git/build"
cmake -DCMAKE_BUILD_TYPE=Release ..
2018-07-25 11:19:15 +02:00
make
}
package () {
cd "$srcdir/$pkgname-git/build"
2018-07-25 11:19:15 +02:00
make DESTDIR="${pkgdir}" install
2018-07-25 11:25:58 +02:00
install -D -m664 "$srcdir/$pkgname-git/AUR/gds-render.desktop" \
2018-07-25 11:19:15 +02:00
"$pkgdir/usr/share/applications/gds-render.desktop"
2018-07-25 11:25:58 +02:00
install -D -m664 "$srcdir/$pkgname-git/icon/gds-render.svg" \
2018-07-25 11:19:15 +02:00
"$pkgdir/usr/share/icons/hicolor/scalable/apps/gds-render.svg"
2018-07-25 11:25:58 +02:00
install -D -m664 "$srcdir/$pkgname-git/icon/128x128/gds-render.png" \
2018-07-25 11:19:15 +02:00
"$pkgdir/usr/share/icons/hicolor/128x128/apps/gds-render.png"
tar cf - "$srcdir/$pkgname-git/build/translations/output/locale" | (cd "$pkgdir/usr/share/" && tar xf -)
2018-07-25 11:19:15 +02:00
}