2019-10-28 21:50:03 +01:00
|
|
|
# Maintainer: Mario Hüttel <mario (dot) huettel (!) gmx (dot) net>
|
2018-07-25 11:19:15 +02:00
|
|
|
|
|
|
|
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 () {
|
2018-07-25 11:25:58 +02:00
|
|
|
cd "$srcdir/$pkgname-git"
|
2019-08-23 18:19:46 +02:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release .
|
2018-07-25 11:19:15 +02:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package () {
|
2018-07-25 11:25:58 +02:00
|
|
|
cd "$srcdir/$pkgname-git"
|
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"
|
|
|
|
}
|