fix PKGBUILD

This commit is contained in:
Mario Hüttel 2018-07-25 11:25:58 +02:00
parent 6f9b23301e
commit 5aaa4d85b8

View File

@ -4,38 +4,34 @@ pkgname=gds-render
pkgver=20180725.001 pkgver=20180725.001
pkgrel=1 pkgrel=1
pkgdesc="Conversion tool for converting GDS layout files into TikZ Code and PDF" pkgdesc="Conversion tool for converting GDS layout files into TikZ Code and PDF"
arch=('i686', 'x86_64') arch=('i686' 'x86_64')
url="https://git.shimatta.de/mhu/gds-render" url="https://git.shimatta.de/mhu/gds-render"
licence=('GPLv2') licence=('GPLv2')
depends=('glib2' 'gtk3' 'cairo') depends=('glib2' 'gtk3' 'cairo')
makedepends=('cmake' 'git') makedepends=('cmake' 'git')
privides=('gds-render') privides=('gds-render')
source=("$pkgname"::"git+https://git.shimatta.de/mhu/gds-render.git") source=("${pkgname}-git"::"git+https://git.shimatta.de/mhu/gds-render.git")
sha1sums=('SKIP') sha1sums=('SKIP')
pkgver () { pkgver () {
_date=`date +"%Y%m%d"` _date=`date +"%Y%m%d"`
cd "${srcdir}/${pkgname}" cd "${srcdir}/${pkgname}-git"
echo "$_date.$(git rev-list --count master).$(git rev-parse --short master)" echo "$_date.$(git rev-list --count master).$(git rev-parse --short master)"
} }
prepare () {
}
build () { build () {
cd "$srcdir/$pkgname" cd "$srcdir/$pkgname-git"
cmake . cmake .
make make
} }
package () { package () {
cd "$srcdir/$pkgname" cd "$srcdir/$pkgname-git"
make DESTDIR="${pkgdir}" install make DESTDIR="${pkgdir}" install
install -D -m664 "$srcdir/$pkgname/AUR/gds-render.desktop" \ install -D -m664 "$srcdir/$pkgname-git/AUR/gds-render.desktop" \
"$pkgdir/usr/share/applications/gds-render.desktop" "$pkgdir/usr/share/applications/gds-render.desktop"
install -D -m664 "$srcdir/$pkgname/icon/gds-render.svg" \ install -D -m664 "$srcdir/$pkgname-git/icon/gds-render.svg" \
"$pkgdir/usr/share/icons/hicolor/scalable/apps/gds-render.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/gds-render.svg"
install -D -m664 "$srcdir/$pkgname/icon/128x128/gds-render.png" \ install -D -m664 "$srcdir/$pkgname-git/icon/128x128/gds-render.png" \
"$pkgdir/usr/share/icons/hicolor/128x128/apps/gds-render.png" "$pkgdir/usr/share/icons/hicolor/128x128/apps/gds-render.png"
} }