-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
On branch main - Changes to be committed: - new file: .SRCINFO - new file: PKGBUILD - new file: license.txt
- Loading branch information
0 parents
commit 93bc7a1
Showing
3 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <archiv8@artisteducator.com> | ||
# Contributor: Ross Clark <archiv8@artisteducator.com> | ||
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |