summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rawlinson2020-11-01 12:25:11 +1300
committerGeorge Rawlinson2020-11-01 12:25:11 +1300
commitc995ccb0789ae67b0f0c14fed507dd97b309e87c (patch)
tree1252ba901a0d677c30f53d5ec31bd439f42c7e89
downloadaur-c995ccb0789ae67b0f0c14fed507dd97b309e87c.tar.gz
addpkg: python-auto-changelog 0.5.1-1
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD32
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f555023316e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = python-auto-changelog
+ pkgdesc = Generates changelogs for git repositories using conventional style commit messages
+ pkgver = 0.5.1
+ pkgrel = 1
+ url = https://github.com/Michael-F-Bryan/auto-changelog
+ arch = any
+ license = MIT
+ makedepends = python-dephell
+ depends = python-jinja
+ depends = python-gitpython
+ depends = python-docopt
+ depends = python-click
+ source = python-auto-changelog-0.5.1.tar.gz::https://github.com/Michael-F-Bryan/auto-changelog/archive/0.5.1.tar.gz
+ b2sums = ba8db56292d62cacc81e8559eb74900e0f3b3994a996c19517417a7f8cb477cb6510dc994d2ce24ea9de17fd1f3ab2221458ee14920ba42b313f96f8a0b549eb
+
+pkgname = python-auto-changelog
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c715b83d893
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: George Rawlinson <george@rawlinson.net.nz>
+
+pkgname=python-auto-changelog
+_pkgname="${pkgname#python-}"
+_name="${_pkgname/-/_}"
+pkgver=0.5.1
+pkgrel=1
+pkgdesc="Generates changelogs for git repositories using conventional style commit messages"
+arch=('any')
+url="https://github.com/Michael-F-Bryan/auto-changelog"
+license=('MIT')
+depends=('python-jinja' 'python-gitpython' 'python-docopt' 'python-click')
+makedepends=('python-dephell')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+b2sums=('ba8db56292d62cacc81e8559eb74900e0f3b3994a996c19517417a7f8cb477cb6510dc994d2ce24ea9de17fd1f3ab2221458ee14920ba42b313f96f8a0b549eb')
+
+prepare() {
+ cd "$_pkgname-$pkgver"
+ dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+ cd "$_pkgname-$pkgver"
+ python setup.py build
+}
+
+package() {
+ cd "$_pkgname-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}