--- /dev/null
+# Maintainer: Vincent Dahmen <wahrwolf[ät]wolfpit.net>
+# Contributor: Rico Sennrich
+#pkgname=('python-subword-nmt' 'python2-subword-nmt')
+pkgname=python-subword-nmt
+_upstream_name="subword-nmt"
+pkgver=0.3.6
+pkgrel=1
+pkgdesc="Unsupervised Word Segmentation for Neural Machine Translation and Text Generation"
+arch=('any')
+url="https://github.com/rsennrich/subword-nmt"
+license=('MIT')
+makedepends=('python' 'python-setuptools' 'python2-setuptools')
+source=("$pkgname-$pkgver::https://github.com/wahrwolf/subword-nmt/archive/v$pkgver.tar.gz")
+sha512sums=('c76094069eef79633d5c6d21979298c6d619aaa87a878ec71b299ec2325b836b661ec3f9d428d0047646412accaf6d47c6e1220e59714cd172ee89d68fda03e0')
+
+build() {
+ cd "$_upstream_name-$pkgver"
+ python setup.py build
+}
+
+package() {
+ cd "$_upstream_name-$pkgver"
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+ install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+}