4 Commits

12 changed files with 295 additions and 49 deletions
Split View
  1. +45
    -45
      ap/docbook/catalog.xml
  2. +1
    -1
      ap/docbook/docbook.SlackBuild
  3. +40
    -0
      l/biopython/biopython-1.77-snapgene-utf8.diff
  4. +69
    -0
      l/biopython/biopython-1.77-snapgene-wrapping-features.diff
  5. +3
    -1
      l/biopython/biopython.SlackBuild
  6. +19
    -0
      l/python-flake8-black/doinst.sh
  7. +1
    -0
      l/python-flake8-black/flake8-black-0.2.1.tar.gz.sha256
  8. +103
    -0
      l/python-flake8-black/python-flake8-black.SlackBuild
  9. +12
    -0
      l/python-flake8-black/slack-desc
  10. +0
    -1
      xap/zotero/Zotero-5.0.88_linux-x86_64.tar.bz2.sha256
  11. +1
    -0
      xap/zotero/Zotero-5.0.89_linux-x86_64.tar.bz2.sha256
  12. +1
    -1
      xap/zotero/zotero.SlackBuild

+ 45
- 45
ap/docbook/catalog.xml View File

@@ -1,53 +1,53 @@
<?xml version="1.0"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">

<uri name="http://www.oasis-open.org/docbook/xml/5.1/docbook.nvdl" uri="file:///usr/share/xml/docbook/xml-5.1/docbook.nvdl"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/rng/assembly.rnc" uri="file:///usr/share/xml/docbook/xml-5.1/rng/assembly.rnc"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/rng/assembly.rng" uri="file:///usr/share/xml/docbook/xml-5.1/rng/assembly.rng"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/rng/dbits.rnc" uri="file:///usr/share/xml/docbook/xml-5.1/rng/dbits.rnc"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/rng/dbits.rng" uri="file:///usr/share/xml/docbook/xml-5.1/rng/dbits.rng"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/rng/docbook.rnc" uri="file:///usr/share/xml/docbook/xml-5.1/rng/docbook.rnc"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/rng/docbook.rng" uri="file:///usr/share/xml/docbook/xml-5.1/rng/docbook.rng"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/rng/docbookxi.rnc" uri="file:///usr/share/xml/docbook/xml-5.1/rng/docbookxi.rnc"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/rng/docbookxi.rng" uri="file:///usr/share/xml/docbook/xml-5.1/rng/docbookxi.rng"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/sch/docbook.sch" uri="file:///usr/share/xml/docbook/xml-5.1/sch/docbook.sch"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/xsd/docbook.xsd" uri="file:///usr/share/xml/docbook/xml-5.1/xsd/docbook.xsd"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/xsd/docbookxi.xsd" uri="file:///usr/share/xml/docbook/xml-5.1/xsd/docbookxi.xsd"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/xsd/xi.xsd" uri="file:///usr/share/xml/docbook/xml-5.1/xsd/xi.xsd"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/xsd/xlink.xsd" uri="file:///usr/share/xml/docbook/xml-5.1/xsd/xlink.xsd"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/xsd/xml.xsd" uri="file:///usr/share/xml/docbook/xml-5.1/xsd/xml.xsd"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/docbook.nvdl" uri="file:///usr/share/xml/docbook-5.1/docbook.nvdl"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/rng/assembly.rnc" uri="file:///usr/share/xml/docbook-5.1/rng/assembly.rnc"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/rng/assembly.rng" uri="file:///usr/share/xml/docbook-5.1/rng/assembly.rng"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/rng/dbits.rnc" uri="file:///usr/share/xml/docbook-5.1/rng/dbits.rnc"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/rng/dbits.rng" uri="file:///usr/share/xml/docbook-5.1/rng/dbits.rng"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/rng/docbook.rnc" uri="file:///usr/share/xml/docbook-5.1/rng/docbook.rnc"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/rng/docbook.rng" uri="file:///usr/share/xml/docbook-5.1/rng/docbook.rng"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/rng/docbookxi.rnc" uri="file:///usr/share/xml/docbook-5.1/rng/docbookxi.rnc"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/rng/docbookxi.rng" uri="file:///usr/share/xml/docbook-5.1/rng/docbookxi.rng"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/sch/docbook.sch" uri="file:///usr/share/xml/docbook-5.1/sch/docbook.sch"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/xsd/docbook.xsd" uri="file:///usr/share/xml/docbook-5.1/xsd/docbook.xsd"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/xsd/docbookxi.xsd" uri="file:///usr/share/xml/docbook-5.1/xsd/docbookxi.xsd"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/xsd/xi.xsd" uri="file:///usr/share/xml/docbook-5.1/xsd/xi.xsd"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/xsd/xlink.xsd" uri="file:///usr/share/xml/docbook-5.1/xsd/xlink.xsd"/>
<uri name="http://www.oasis-open.org/docbook/xml/5.1/xsd/xml.xsd" uri="file:///usr/share/xml/docbook-5.1/xsd/xml.xsd"/>

<uri name="http://docbook.org/xml/5.1/docbook.nvdl" uri="file:///usr/share/xml/docbook/xml-5.1/docbook.nvdl"/>
<uri name="http://docbook.org/xml/5.1/rng/assembly.rnc" uri="file:///usr/share/xml/docbook/xml-5.1/rng/assembly.rnc"/>
<uri name="http://docbook.org/xml/5.1/rng/assembly.rng" uri="file:///usr/share/xml/docbook/xml-5.1/rng/assembly.rng"/>
<uri name="http://docbook.org/xml/5.1/rng/dbits.rnc" uri="file:///usr/share/xml/docbook/xml-5.1/rng/dbits.rnc"/>
<uri name="http://docbook.org/xml/5.1/rng/dbits.rng" uri="file:///usr/share/xml/docbook/xml-5.1/rng/dbits.rng"/>
<uri name="http://docbook.org/xml/5.1/rng/docbook.rnc" uri="file:///usr/share/xml/docbook/xml-5.1/rng/docbook.rnc"/>
<uri name="http://docbook.org/xml/5.1/rng/docbook.rng" uri="file:///usr/share/xml/docbook/xml-5.1/rng/docbook.rng"/>
<uri name="http://docbook.org/xml/5.1/rng/docbookxi.rnc" uri="file:///usr/share/xml/docbook/xml-5.1/rng/docbookxi.rnc"/>
<uri name="http://docbook.org/xml/5.1/rng/docbookxi.rng" uri="file:///usr/share/xml/docbook/xml-5.1/rng/docbookxi.rng"/>
<uri name="http://docbook.org/xml/5.1/sch/docbook.sch" uri="file:///usr/share/xml/docbook/xml-5.1/sch/docbook.sch"/>
<uri name="http://docbook.org/xml/5.1/xsd/docbook.xsd" uri="file:///usr/share/xml/docbook/xml-5.1/xsd/docbook.xsd"/>
<uri name="http://docbook.org/xml/5.1/xsd/docbookxi.xsd" uri="file:///usr/share/xml/docbook/xml-5.1/xsd/docbookxi.xsd"/>
<uri name="http://docbook.org/xml/5.1/xsd/xi.xsd" uri="file:///usr/share/xml/docbook/xml-5.1/xsd/xi.xsd"/>
<uri name="http://docbook.org/xml/5.1/xsd/xlink.xsd" uri="file:///usr/share/xml/docbook/xml-5.1/xsd/xlink.xsd"/>
<uri name="http://docbook.org/xml/5.1/xsd/xml.xsd" uri="file:///usr/share/xml/docbook/xml-5.1/xsd/xml.xsd"/>
<uri name="http://docbook.org/xml/5.1/docbook.nvdl" uri="file:///usr/share/xml/docbook-5.1/docbook.nvdl"/>
<uri name="http://docbook.org/xml/5.1/rng/assembly.rnc" uri="file:///usr/share/xml/docbook-5.1/rng/assembly.rnc"/>
<uri name="http://docbook.org/xml/5.1/rng/assembly.rng" uri="file:///usr/share/xml/docbook-5.1/rng/assembly.rng"/>
<uri name="http://docbook.org/xml/5.1/rng/dbits.rnc" uri="file:///usr/share/xml/docbook-5.1/rng/dbits.rnc"/>
<uri name="http://docbook.org/xml/5.1/rng/dbits.rng" uri="file:///usr/share/xml/docbook-5.1/rng/dbits.rng"/>
<uri name="http://docbook.org/xml/5.1/rng/docbook.rnc" uri="file:///usr/share/xml/docbook-5.1/rng/docbook.rnc"/>
<uri name="http://docbook.org/xml/5.1/rng/docbook.rng" uri="file:///usr/share/xml/docbook-5.1/rng/docbook.rng"/>
<uri name="http://docbook.org/xml/5.1/rng/docbookxi.rnc" uri="file:///usr/share/xml/docbook-5.1/rng/docbookxi.rnc"/>
<uri name="http://docbook.org/xml/5.1/rng/docbookxi.rng" uri="file:///usr/share/xml/docbook-5.1/rng/docbookxi.rng"/>
<uri name="http://docbook.org/xml/5.1/sch/docbook.sch" uri="file:///usr/share/xml/docbook-5.1/sch/docbook.sch"/>
<uri name="http://docbook.org/xml/5.1/xsd/docbook.xsd" uri="file:///usr/share/xml/docbook-5.1/xsd/docbook.xsd"/>
<uri name="http://docbook.org/xml/5.1/xsd/docbookxi.xsd" uri="file:///usr/share/xml/docbook-5.1/xsd/docbookxi.xsd"/>
<uri name="http://docbook.org/xml/5.1/xsd/xi.xsd" uri="file:///usr/share/xml/docbook-5.1/xsd/xi.xsd"/>
<uri name="http://docbook.org/xml/5.1/xsd/xlink.xsd" uri="file:///usr/share/xml/docbook-5.1/xsd/xlink.xsd"/>
<uri name="http://docbook.org/xml/5.1/xsd/xml.xsd" uri="file:///usr/share/xml/docbook-5.1/xsd/xml.xsd"/>

<uri name="http://www.docbook.org/xml/5.1/docbook.nvdl" uri="file:///usr/share/xml/docbook/xml-5.1/docbook.nvdl"/>
<uri name="http://www.docbook.org/xml/5.1/rng/assembly.rnc" uri="file:///usr/share/xml/docbook/xml-5.1/rng/assembly.rnc"/>
<uri name="http://www.docbook.org/xml/5.1/rng/assembly.rng" uri="file:///usr/share/xml/docbook/xml-5.1/rng/assembly.rng"/>
<uri name="http://www.docbook.org/xml/5.1/rng/dbits.rnc" uri="file:///usr/share/xml/docbook/xml-5.1/rng/dbits.rnc"/>
<uri name="http://www.docbook.org/xml/5.1/rng/dbits.rng" uri="file:///usr/share/xml/docbook/xml-5.1/rng/dbits.rng"/>
<uri name="http://www.docbook.org/xml/5.1/rng/docbook.rnc" uri="file:///usr/share/xml/docbook/xml-5.1/rng/docbook.rnc"/>
<uri name="http://www.docbook.org/xml/5.1/rng/docbook.rng" uri="file:///usr/share/xml/docbook/xml-5.1/rng/docbook.rng"/>
<uri name="http://www.docbook.org/xml/5.1/rng/docbookxi.rnc" uri="file:///usr/share/xml/docbook/xml-5.1/rng/docbookxi.rnc"/>
<uri name="http://www.docbook.org/xml/5.1/rng/docbookxi.rng" uri="file:///usr/share/xml/docbook/xml-5.1/rng/docbookxi.rng"/>
<uri name="http://www.docbook.org/xml/5.1/sch/docbook.sch" uri="file:///usr/share/xml/docbook/xml-5.1/sch/docbook.sch"/>
<uri name="http://www.docbook.org/xml/5.1/xsd/docbook.xsd" uri="file:///usr/share/xml/docbook/xml-5.1/xsd/docbook.xsd"/>
<uri name="http://www.docbook.org/xml/5.1/xsd/docbookxi.xsd" uri="file:///usr/share/xml/docbook/xml-5.1/xsd/docbookxi.xsd"/>
<uri name="http://www.docbook.org/xml/5.1/xsd/xi.xsd" uri="file:///usr/share/xml/docbook/xml-5.1/xsd/xi.xsd"/>
<uri name="http://www.docbook.org/xml/5.1/xsd/xlink.xsd" uri="file:///usr/share/xml/docbook/xml-5.1/xsd/xlink.xsd"/>
<uri name="http://www.docbook.org/xml/5.1/xsd/xml.xsd" uri="file:///usr/share/xml/docbook/xml-5.1/xsd/xml.xsd"/>
<uri name="http://www.docbook.org/xml/5.1/docbook.nvdl" uri="file:///usr/share/xml/docbook-5.1/docbook.nvdl"/>
<uri name="http://www.docbook.org/xml/5.1/rng/assembly.rnc" uri="file:///usr/share/xml/docbook-5.1/rng/assembly.rnc"/>
<uri name="http://www.docbook.org/xml/5.1/rng/assembly.rng" uri="file:///usr/share/xml/docbook-5.1/rng/assembly.rng"/>
<uri name="http://www.docbook.org/xml/5.1/rng/dbits.rnc" uri="file:///usr/share/xml/docbook-5.1/rng/dbits.rnc"/>
<uri name="http://www.docbook.org/xml/5.1/rng/dbits.rng" uri="file:///usr/share/xml/docbook-5.1/rng/dbits.rng"/>
<uri name="http://www.docbook.org/xml/5.1/rng/docbook.rnc" uri="file:///usr/share/xml/docbook-5.1/rng/docbook.rnc"/>
<uri name="http://www.docbook.org/xml/5.1/rng/docbook.rng" uri="file:///usr/share/xml/docbook-5.1/rng/docbook.rng"/>
<uri name="http://www.docbook.org/xml/5.1/rng/docbookxi.rnc" uri="file:///usr/share/xml/docbook-5.1/rng/docbookxi.rnc"/>
<uri name="http://www.docbook.org/xml/5.1/rng/docbookxi.rng" uri="file:///usr/share/xml/docbook-5.1/rng/docbookxi.rng"/>
<uri name="http://www.docbook.org/xml/5.1/sch/docbook.sch" uri="file:///usr/share/xml/docbook-5.1/sch/docbook.sch"/>
<uri name="http://www.docbook.org/xml/5.1/xsd/docbook.xsd" uri="file:///usr/share/xml/docbook-5.1/xsd/docbook.xsd"/>
<uri name="http://www.docbook.org/xml/5.1/xsd/docbookxi.xsd" uri="file:///usr/share/xml/docbook-5.1/xsd/docbookxi.xsd"/>
<uri name="http://www.docbook.org/xml/5.1/xsd/xi.xsd" uri="file:///usr/share/xml/docbook-5.1/xsd/xi.xsd"/>
<uri name="http://www.docbook.org/xml/5.1/xsd/xlink.xsd" uri="file:///usr/share/xml/docbook-5.1/xsd/xlink.xsd"/>
<uri name="http://www.docbook.org/xml/5.1/xsd/xml.xsd" uri="file:///usr/share/xml/docbook-5.1/xsd/xml.xsd"/>

<rewriteURI uriStartString="http://cdn.docbook.org/release/xsl/current/" rewritePrefix="/usr/share/xml/docbook/xsl-stylesheets-ns-1.79.2/"/>
<rewriteSystem systemIdStartString="http://cdn.docbook.org/release/xsl-ns/current/" rewritePrefix="/usr/share/xml/docbook/xsl-stylesheets-ns-1.79.2/"/>


+ 1
- 1
ap/docbook/docbook.SlackBuild View File

@@ -36,7 +36,7 @@ XSLURL=https://github.com/docbook/xslt10-stylesheets/releases/download/release%2
# Build infos
NAMEPKG=${NAMEPKG:-docbook}
VERSION=$DBVERSION
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=noarch
EXT=${EXT:-txz}



+ 40
- 0
l/biopython/biopython-1.77-snapgene-utf8.diff View File

@@ -0,0 +1,41 @@
commit 86ff00b49004091a95933167824088f7682ee698
Author: Damien Goutte-Gattat <dgouttegattat@incenp.org>
Date: Fri Jul 31 00:18:32 2020 +0100

SnapGene: Parse XML data as UTF8-encoded strings (#3180).
All XML chunks within SnapGene packets should be parsed as UTF-8,
as per the XML specification in the absence of an explicit encoding
attribute.

diff --git a/Bio/SeqIO/SnapGeneIO.py b/Bio/SeqIO/SnapGeneIO.py
index 9c8598b50..9464e682f 100644
--- a/Bio/SeqIO/SnapGeneIO.py
@@ -75,7 +75,7 @@ def _parse_notes_packet(length, data, record):
This type of packet contains some metadata about the sequence. They
are stored as a XML string with a 'Notes' root node.
"""
- xml = parseString(data.decode("ASCII"))
+ xml = parseString(data.decode("UTF-8"))
type = _get_child_value(xml, "Type")
if type == "Synthetic":
record.annotations["data_file_division"] = "SYN"
@@ -116,7 +116,7 @@ def _parse_features_packet(length, data, record):
which are in a dedicated Primers packet). The data is a XML string
starting with a 'Features' root node.
"""
- xml = parseString(data.decode("ASCII"))
+ xml = parseString(data.decode("UTF-8"))
for feature in xml.getElementsByTagName("Feature"):
quals = {}
@@ -170,7 +170,7 @@ def _parse_primers_packet(length, data, record):
stores primer binding features. The data is a XML string starting
with a 'Primers' root node.
"""
- xml = parseString(data.decode("ASCII"))
+ xml = parseString(data.decode("UTF-8"))
for primer in xml.getElementsByTagName("Primer"):
quals = {}

+ 69
- 0
l/biopython/biopython-1.77-snapgene-wrapping-features.diff View File

@@ -0,0 +1,70 @@
commit 119845697972a7ea3d6c2574dd5e2bdbe53b905e
Author: Damien Goutte-Gattat <dgouttegattat@incenp.org>
Date: Fri Jul 31 00:23:29 2020 +0100

SnapGene: Support features wrapping the origin.
A SnapGene file containing a circular sequence may contain feature
range specifications that wrap the beginning/end of the sequence,
e.g. "3925-2" for a feature starting at position 3925 near the end
of the sequence and ending at position 2. This case must be
recognized and represented as a CompoundLocation in the SeqRecord
object.

diff --git a/Bio/SeqIO/SnapGeneIO.py b/Bio/SeqIO/SnapGeneIO.py
index 9464e682f..ad1bd3258 100644
--- a/Bio/SeqIO/SnapGeneIO.py
@@ -109,6 +109,18 @@ def _parse_cookie_packet(length, data, record):
raise ValueError("The file is not a valid SnapGene file")
+def _parse_location(rangespec, strand, record):
+ start, end = [int(x) for x in rangespec.split("-")]
+ # Account for SnapGene's 1-based coordinates
+ start = start - 1
+ if start > end:
+ # Range wrapping the end of the sequence
+ location = FeatureLocation(start, len(record), strand=strand) + FeatureLocation(0, end, strand=strand)
+ else:
+ location = FeatureLocation(start, end, strand=strand)
+ return location
+
+
def _parse_features_packet(length, data, record):
"""Parse a sequence features packet.
@@ -135,13 +147,10 @@ def _parse_features_packet(length, data, record):
location = None
for segment in feature.getElementsByTagName("Segment"):
rng = _get_attribute_value(segment, "range")
- start, end = [int(x) for x in rng.split("-")]
- # Account for SnapGene's 1-based coordinates
- start = start - 1
if not location:
- location = FeatureLocation(start, end, strand=strand)
+ location = _parse_location(rng, strand, record)
else:
- location = location + FeatureLocation(start, end, strand=strand)
+ location = location + _parse_location(rng, strand, record)
if not location:
raise ValueError("Missing feature location")
@@ -182,8 +191,6 @@ def _parse_primers_packet(length, data, record):
rng = _get_attribute_value(
site, "location", error="Missing binding site location"
)
- start, end = [int(x) for x in rng.split("-")]
-
strand = int(_get_attribute_value(site, "boundStrand", default="0"))
if strand == 1:
strand = -1
@@ -191,7 +198,7 @@ def _parse_primers_packet(length, data, record):
strand = +1
feature = SeqFeature(
- FeatureLocation(start, end, strand=strand),
+ _parse_location(rng, strand, record),
type="primer_bind",
qualifiers=quals,
)

+ 3
- 1
l/biopython/biopython.SlackBuild View File

@@ -35,7 +35,7 @@ ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}

# Build infos
NAMEPKG=${NAMEPKG:-biopython}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
EXT=${EXT:-txz}

@@ -82,6 +82,8 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
patch -p 1 < $CWD/biopython-1.77-snapgene-utf8.diff
patch -p 1 < $CWD/biopython-1.77-snapgene-wrapping-features.diff
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python3 setup.py build


+ 19
- 0
l/python-flake8-black/doinst.sh View File

@@ -0,0 +1,19 @@
#!/bin/sh
config()
{
NEW="$1"
OLD="`dirname $NEW`/`basename $NEW .new`"
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then
rm $NEW
fi
}

if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database ./usr/share/applications >/dev/null 2>&1
fi

if [ -x /usr/bin/update-mime-database ]; then
/usr/bin/update-mime-database ./usr/share/mime >/dev/null 2>&1
fi

+ 1
- 0
l/python-flake8-black/flake8-black-0.2.1.tar.gz.sha256 View File

@@ -0,0 +1 @@
f26651bc10db786c03f4093414f7c9ea982ed8a244cec323c984feeffdf4c118 flake8-black-0.2.1.tar.gz

+ 103
- 0
l/python-flake8-black/python-flake8-black.SlackBuild View File

@@ -0,0 +1,103 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2020 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest flake8-black sourcecode is available at: <PROJECT_URL>.
#
# [NOTES]
#
# Depends: l/python-black, l/python-flake8

# Source package infos
NAMESRC=${NAMESRC:-flake8-black}
VERSION=${VERSION:-0.2.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}

# Build infos
NAMEPKG=${NAMEPKG:-python-flake8-black}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}

# Directories
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
PYTHONDIR=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')

set -e # Quit if a command returns non-zero

# Sanity checks
if [ $UID -eq 0 ]; then
echo "You should NOT run this script as ROOT!"
exit 1
fi
if [ ! -d $TMP ]; then
echo "$TMP does not exists or is not a directory!"
exit 1
fi

# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)

# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python3 setup.py build
python3 setup.py install --root=$PKG

# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 LICENSE.rst README.rst $PKG/usr/doc/$NAMEPKG-$VERSION

# Copy slack-desc files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

# Add dependency infos
cat <<EOF > $PKG/install/slack-required
python-black
python-flake8
EOF

# Package the tree
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else
su -c "$PACKAGING"
fi

+ 12
- 0
l/python-flake8-black/slack-desc View File

@@ -0,0 +1,12 @@
|-----handy-ruler-----------------------------------------------------|
python-flake8-black: python-flake8-black (black plugin for Flake8)
python-flake8-black:
python-flake8-black: This is a flake8 plugin for validating Python code style with the
python-flake8-black: command line code formatting tool black.
python-flake8-black:
python-flake8-black:
python-flake8-black:
python-flake8-black:
python-flake8-black:
python-flake8-black:
python-flake8-black:

+ 0
- 1
xap/zotero/Zotero-5.0.88_linux-x86_64.tar.bz2.sha256 View File

@@ -1 +0,0 @@
c248bb3b5165f4b03c7e38673aa928f1f29796a8d8ba1b335699803c559529a7 Zotero-5.0.88_linux-x86_64.tar.bz2

+ 1
- 0
xap/zotero/Zotero-5.0.89_linux-x86_64.tar.bz2.sha256 View File

@@ -0,0 +1 @@
74e1dbe47a3804bccfccdfd1f3d3fb92912c4f0bd30a776676c2a5eeacc5e4a2 Zotero-5.0.89_linux-x86_64.tar.bz2

+ 1
- 1
xap/zotero/zotero.SlackBuild View File

@@ -30,7 +30,7 @@ ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}

# Source package infos
NAMESRC=${NAMESRC:-Zotero}
VERSION=${VERSION:-5.0.88}
VERSION=${VERSION:-5.0.89}
ARCHIVE=${ARCHIVE:-$NAMESRC-${VERSION}_linux-$ARCH.tar.bz2}
WGET=${WGET:-https://download.zotero.org/client/release/$VERSION/$ARCHIVE}



Loading…
Cancel
Save