summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Flament2018-12-18 02:17:40 +0100
committerDamien Flament2018-12-18 02:17:40 +0100
commit486d7fb4f908e20935b40318e1cf226bac03d9c7 (patch)
tree79f083477106c8ec6b35f555dab81b1b8c0fc4a2
parent2e470c4f46e934fc62758ea6febfbcc8bcc2eb58 (diff)
downloadaur-486d7fb4f908e20935b40318e1cf226bac03d9c7.tar.gz
Updated installation commands.
-rw-r--r--PKGBUILD16
1 files changed, 9 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5ef6afd3232..29af585aeeb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -32,7 +32,7 @@ function build
{
cd "$_pkgtitle"
- qmake librecad.pro \
+ qmake -recursive librecad.pro \
QMAKE_CPPFLAGS="$CPPFLAGS" \
QMAKE_CFLAGS="$CFLAGS" \
QMAKE_CXXFLAGS="$CXXFLAGS" \
@@ -45,12 +45,14 @@ function package
{
cd "$_pkgtitle"
- install -D -m 755 unix/librecad "${pkgdir}/usr/bin/librecad"
- install -D -m 755 unix/ttf2lff "${pkgdir}/usr/bin/ttf2lff"
+ install -m 644 -Dt "$pkgdir/usr/share/pixmaps" librecad/res/main/librecad.png
- mkdir -p "${pkgdir}/usr/share/librecad"
- cp -r unix/resources/{library,patterns,fonts,qm,plugins} "${pkgdir}/usr/share/librecad"
+ cd unix
- install -D -m 644 "${srcdir}/librecad.desktop" "${pkgdir}/usr/share/applications/librecad.desktop"
- install -D -m 644 librecad/res/main/librecad.png "${pkgdir}/usr/share/pixmaps/librecad.png"
+ install -Dt "$pkgdir/usr/bin" librecad ttf2lff
+
+ install -Dd "$pkgdir/usr/share/librecad"
+ cp --recursive -t "$pkgdir/usr/share/librecad" resources/*
+
+ install -m 644 -Dt "$pkgdir/usr/share/applications" "$srcdir/librecad.desktop"
}