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
|
2020-04-16 22:43:29 +02:00
|
|
|
pkgver=v1.2_10_g00d02b8
|
2018-07-25 11:19:15 +02:00
|
|
|
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')
|
2022-04-17 00:45:49 +02:00
|
|
|
source=("${pkgname}-git"::"git+https://git.shimatta.de/mhu/gds-render.git#recursive" "https://git.shimatta.de/3rd-party/libfort.git")
|
2022-04-17 00:46:51 +02:00
|
|
|
sha1sums=('SKIP' 'SKIP')
|
2018-07-25 11:19:15 +02:00
|
|
|
|
|
|
|
pkgver () {
|
|
|
|
_date=`date +"%Y%m%d"`
|
2020-04-16 22:43:29 +02:00
|
|
|
cd "${srcdir}/${pkgname}-git/version"
|
|
|
|
echo "$(echo "$(sh ./generate-version-string.sh)" | sed 's/-/_/g')"
|
2018-07-25 11:19:15 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build () {
|
2019-10-20 14:04:39 +02:00
|
|
|
mkdir "$srcdir/$pkgname-git/build"
|
|
|
|
cd "$srcdir/$pkgname-git/build"
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
2018-07-25 11:19:15 +02:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2022-04-17 00:45:49 +02:00
|
|
|
prepare () {
|
|
|
|
cd "${pkgname}-git"
|
|
|
|
git submodule init
|
|
|
|
git config submodule.libfort.url "$srcdir/libfort"
|
|
|
|
git submodule update
|
|
|
|
}
|
|
|
|
|
2018-07-25 11:19:15 +02:00
|
|
|
package () {
|
2019-10-20 14:04:39 +02:00
|
|
|
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"
|
2019-10-20 14:26:46 +02:00
|
|
|
|
|
|
|
(cd $srcdir/$pkgname-git/build/translations/output/ && tar cf - "locale" | (cd "$pkgdir/usr/share/" && tar xf -))
|
2018-07-25 11:19:15 +02:00
|
|
|
}
|