summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-06-04 18:07:34 +0000
committerZach van Rijn <me@zv.io>2022-06-12 23:51:58 +0000
commit6143486d17a18d7650b7531f15540b4b614ce89f (patch)
tree57c4c1d015d391b84d9e01596d6082c7ef02b491
parent38d4ee9b665044325a6a0f9bf9b0fad4e2fb9421 (diff)
downloadpackages-6143486d17a18d7650b7531f15540b4b614ce89f.tar.gz
packages-6143486d17a18d7650b7531f15540b4b614ce89f.tar.bz2
packages-6143486d17a18d7650b7531f15540b4b614ce89f.tar.xz
packages-6143486d17a18d7650b7531f15540b4b614ce89f.zip
user/smartypants: new package.
-rw-r--r--user/smartypants/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/user/smartypants/APKBUILD b/user/smartypants/APKBUILD
new file mode 100644
index 000000000..c43a37228
--- /dev/null
+++ b/user/smartypants/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
+# Maintainer: Zach van Rijn <me@zv.io>
+pkgname=smartypants
+pkgver=2.0.1
+pkgrel=0
+pkgdesc="Translate plain ASCII punctuation characters into 'smart' typographic punctuation HTML entities"
+url="https://pypi.org/project/smartypants/"
+arch="noarch"
+license="BSD"
+depends="python3"
+makedepends="py3-sphinx"
+subpackages="$pkgname-doc"
+source="https://github.com/leohemsted/smartypants.py/archive/v$pkgver/smartypants-$pkgver.tar.gz"
+builddir="$srcdir/smartypants.py-$pkgver"
+
+build() {
+ python3 setup.py build
+
+ make -C docs man
+}
+
+check() {
+ python3 setup.py test
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+
+ install -Dm644 docs/_build/man/smartypants.1 "$pkgdir"/usr/share/man/man1/smartypants.1
+}
+sha512sums="d47a866a5478c3520251f87a93a468a5eea10318b24b2e8d4bc918d533b5a5789aa56d3a8d5fb8ccff9572fb63e5b6f2eafc44f93fb57a19e6621ebef5d64d9d smartypants-2.0.1.tar.gz"