summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Peukert2020-02-20 16:53:07 +0100
committerDaniel Peukert2020-02-20 16:53:07 +0100
commit819b5547b1479c99063df93a6265f4b05551e766 (patch)
treeb8d1b7cd936fddc9f39d1e8524961ca821d6f5fc
downloadaur-819b5547b1479c99063df93a6265f4b05551e766.tar.gz
Added python-pysmart
-rw-r--r--.SRCINFO13
-rw-r--r--.editorconfig8
-rw-r--r--.gitignore14
-rw-r--r--PKGBUILD27
4 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..467fdd76a700
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = python-pysmart
+ pkgdesc = Wrapper for smartctl (smartmontools) - FreeNAS fork - python version
+ pkgver = 20200121
+ pkgrel = 2
+ url = https://github.com/freenas/py-SMART
+ arch = any
+ license = LGPL2.1
+ makedepends = python-setuptools
+ depends = python
+ source = python-pysmart-20200121-2.tar.gz::https://github.com/freenas/py-SMART/archive/d85e26697dbaf77b99e3028056824fcc9e745594.tar.gz
+ sha256sums = 9a4a97981727d038c4bbece76786be49472ff0fec9d44928d0c277b990d718b2
+
+pkgname = python-pysmart
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000000..a467ee9a97a6
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,8 @@
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+indent_style = tab
+tab_width = 4
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..82b3c183d5d4
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,14 @@
+# from https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore
+*.tar
+*.tar.*
+*.rpm
+*.jar
+*.exe
+*.msi
+*.zip
+*.tgz
+*.log
+*.log.*
+*.sig
+
+*/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..3fe8907ccd53
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Daniel Peukert <dan.peukert@gmail.com>
+_projectname='pysmart'
+_reponame='py-SMART'
+pkgname="python-$_projectname"
+pkgver='20200121'
+_commit='d85e26697dbaf77b99e3028056824fcc9e745594'
+pkgrel='2'
+pkgdesc='Wrapper for smartctl (smartmontools) - FreeNAS fork - python version'
+arch=('any')
+url="https://github.com/freenas/$_reponame"
+license=('LGPL2.1')
+depends=('python')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/$_commit.tar.gz")
+sha256sums=('9a4a97981727d038c4bbece76786be49472ff0fec9d44928d0c277b990d718b2')
+
+_sourcedirectory="$_reponame-$_commit"
+
+build() {
+ cd "$srcdir/$_sourcedirectory/"
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir/$_sourcedirectory/"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+}