diff --git a/resources/linux/debian/control.in b/resources/linux/debian/control.in index 5d8812124..457955647 100644 --- a/resources/linux/debian/control.in +++ b/resources/linux/debian/control.in @@ -1,8 +1,10 @@ Package: <%= name %> Version: <%= version %> +Depends: python (>= 2.6), libc6 Section: <%= section %> Priority: optional Architecture: <%= arch %> Installed-Size: <%= installedSize %> Maintainer: <%= maintainer %> Description: <%= description %> + Atom is a free and open source text editor that is modern, approachable, and hackable to the core. diff --git a/resources/linux/debian/lintian-overrides b/resources/linux/debian/lintian-overrides new file mode 100644 index 000000000..8a33af0a7 --- /dev/null +++ b/resources/linux/debian/lintian-overrides @@ -0,0 +1,7 @@ +atom: arch-dependent-file-in-usr-share +atom: changelog-file-missing-in-native-package +atom: copyright-file-contains-full-apache-2-license +atom: copyright-should-refer-to-common-license-file-for-apache-2 +atom: embedded-library +atom: package-installs-python-bytecode +atom: unstripped-binary-or-object diff --git a/script/mkdeb b/script/mkdeb index 53f0ec338..272fe23f3 100755 --- a/script/mkdeb +++ b/script/mkdeb @@ -16,7 +16,7 @@ DEB_PATH="$6" FILE_MODE=755 TARGET_ROOT="`mktemp -d`" -chmod 755 "$TARGET_ROOT" +chmod $FILE_MODE "$TARGET_ROOT" TARGET="$TARGET_ROOT/atom-$VERSION-$ARCH" mkdir -m $FILE_MODE -p "$TARGET/usr" @@ -31,6 +31,17 @@ cp "$DESKTOP_FILE" "$TARGET/usr/share/applications" mkdir -m $FILE_MODE -p "$TARGET/usr/share/pixmaps" cp "$ICON_FILE" "$TARGET/usr/share/pixmaps" -dpkg-deb -b "$TARGET" +# Copy generated LICENSE.md to /usr/share/doc/atom/copyright +mkdir -m $FILE_MODE -p "$TARGET/usr/share/doc/atom" +cp "$TARGET/usr/share/atom/resources/app/LICENSE.md" "$TARGET/usr/share/doc/atom/copyright" + +# Add lintian overrides +mkdir -m $FILE_MODE -p "$TARGET/usr/share/lintian/overrides" +cp "$ROOT/resources/linux/debian/lintian-overrides" "$TARGET/usr/share/lintian/overrides/atom" + +# Remove executable bit from .node files +find "$TARGET" -type f -name "*.node" -exec chmod a-x {} \; + +fakeroot dpkg-deb -b "$TARGET" mv "$TARGET_ROOT/atom-$VERSION-$ARCH.deb" "$DEB_PATH" -rm -rf $TARGET_ROOT +rm -rf "$TARGET_ROOT"