diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..1f662c3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +# Generated by mksrcinfo v8 +# Sat Apr 18 21:22:31 UTC 2020 +pkgbase = ldcad + pkgdesc = A multiplatform LDraw (virtual LEGO) editor that lets you edit LDraw model documents in real-time + pkgver = 1.6d + pkgrel = 1 + epoch = 1 + url = http://www.melkert.net/LDCad + arch = i686 + arch = x86_64 + license = custom + depends = gtk2 + depends = glu + depends = xdg-utils + backup = etc/LDCad.cfg + source = http://www.melkert.net/action/download/LDCad-1-6d-Linux.tar.bz2 + source = license.txt + sha256sums = 8dd7d179ca69b79ccd2b1adc20183fad4366937e0d992342bc4fd85898dd3e99 + sha256sums = 9f94daabad96e05f398e634ab1ed713a1c1326c147825896d8af1b251035e217 + +pkgname = ldcad + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..bdef886 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,67 @@ +#!/bin/bash + +# Disable various shellcheck rules that produce false positives in this file. +# Repository rules should be added to the .shellcheckrc file located in the +# repository root directory, see https://github.com/koalaman/shellcheck/wiki +# and https://archiv8.github.io for further information. +# shellcheck disable=SC2034,SC2154 +# ToDo: Add files: User documentation +# ToDo: Add files: Tooling +# FixMe: Namcap warnings and errors + +# Maintainer: Ross Clark +# Contributor: Ross Clark +pkgname=ldcad +pkgver=1.6d +pkgrel=1 +epoch=1 +pkgdesc="A multiplatform LDraw (virtual LEGO) editor that lets you edit LDraw model documents in real-time" +arch=('i686' 'x86_64') +url="http://www.melkert.net/LDCad" +license=('custom') +depends=('gtk2' 'glu' 'xdg-utils') +backup=('etc/LDCad.cfg') +source=("http://www.melkert.net/action/download/LDCad-${pkgver//./-}-Linux.tar.bz2" + "license.txt") +sha256sums=('8dd7d179ca69b79ccd2b1adc20183fad4366937e0d992342bc4fd85898dd3e99' + '9f94daabad96e05f398e634ab1ed713a1c1326c147825896d8af1b251035e217') + + +prepare() { + cd "${srcdir}/LDCad-${pkgver//./-}-Linux" + # Make the setup script install to the correct paths + sed -i -e "s:/usr:$pkgdir/usr:" \ + -e "s:/etc:$pkgdir/etc:" \ + -e '/update-mime-database/d' \ + -e '/update-desktop-database/d' setup.sh + + if [ "$CARCH" == x86_64 ]; then + cp LDCad64 LDCad + elif [ "$CARCH" == i686 ]; then + cp LDCad32 LDCad + fi +} + +package() { + # Create directories the installer is expecting to find + cd "${pkgdir}" + mkdir -p usr/bin + mkdir -p etc + mkdir -p usr/share/mime/packages/ + mkdir -p usr/share/applications/ + + # Run installer + cd "${srcdir}/LDCad-${pkgver//./-}-Linux" + ./setup.sh + + # Move mime file so it doesn't conflict with other packages + mv "${pkgdir}/usr/share/mime/packages/ldraw.xml" "${pkgdir}/usr/share/mime/packages/ldcad.xml" + + # Remove references to $pkgdir in config and desktop file + sed -i -e "s:$pkgdir::" \ + "${pkgdir}/etc/LDCad.cfg" \ + "${pkgdir}/usr/share/applications/LDCad.desktop" + + # Install license + install -D -m644 "${srcdir}/license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..f3cadd8 --- /dev/null +++ b/license.txt @@ -0,0 +1,11 @@ +LDCad license agreement (v2). + +LDCad, the software from here on, is freeware and may be used non-commercially without charge by anyone. + +Using the software to (partly) create material to be sold later on is only permitted when done at a small (non corporate) scale. In such cases a single unit of the aforementioned material must be donated to the author as a form of payment. + +The author (Roland Melkert) does not guarantee perfect operation of the software, nor can he be held responsible for any damage or loss resulting from the use of the software in anyway. + +By using the software you agree with the contents of this document and therefore agree with the license. + +For questions and contact- or additional information visit melkert.net/LDCad.