gds-render/AUR/PKGBUILD

41 lines
1.3 KiB
Bash
Raw Permalink Normal View History

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=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')
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"`
cd "${srcdir}/${pkgname}-git/version"
echo "$(echo "$(sh ./generate-version-string.sh)" | sed 's/-/_/g')"
2018-07-25 11:19:15 +02:00
}
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"
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
}