diff options
author | Fernando Lopez Jr <fernando.lopezjr@gmail.com> | 2015-12-17 08:29:41 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-12-18 09:19:32 +0700 |
commit | 06081ab4a3933d7c248efe342120ecfaef599315 (patch) | |
tree | 1299f28a052c2e7467d0b4799508e6b09d0c87ed /development/kicad/kicad.SlackBuild | |
parent | e138c83376ea78f4f90d877415133c77992a0ec2 (diff) | |
download | slackbuilds-06081ab4a3933d7c248efe342120ecfaef599315.tar.gz |
development/kicad: Updated for version 4.0.0 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/kicad/kicad.SlackBuild')
-rw-r--r-- | development/kicad/kicad.SlackBuild | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/development/kicad/kicad.SlackBuild b/development/kicad/kicad.SlackBuild index 50728ba17e..014613e462 100644 --- a/development/kicad/kicad.SlackBuild +++ b/development/kicad/kicad.SlackBuild @@ -26,7 +26,7 @@ # Revision date: 2013/03/29 PRGNAM=kicad -VERSION=${VERSION:-bzr_20130325} +VERSION=${VERSION:-4.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -63,41 +63,37 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -# Patch to solve path to help-files from kicad-doc package -# This is not the cleanest solution, but it works, and the source code itself -# admits being "hacky"... -patch -p1 < $CWD/help_path.patch + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; mkdir -p build cd build cmake \ + -DKICAD_REPO_NAME=stable \ + -DKICAD_BUILD_VERSION=4.0.0 \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DKICAD_DOCS=/usr/doc/$PRGNAM-$VERSION \ -DKICAD_PLUGINS=/usr/lib${LIBDIRSUFFIX}/$PRGNAM/plugins \ -DKICAD_STABLE_VERSION=ON \ + -DKICAD_SKIP_BOOST=ON \ -DCMAKE_BUILD_TYPE=Release .. make VERBOSE=1 make install DESTDIR=$PKG cd .. -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - AUTHORS.txt CHANGELOG.txt COPYRIGHT.txt INSTALL.txt README.txt TODO.txt \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |