blob: 6677b145c1e0bee10f5eaaba1ec9cb1bc3bd681a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: fossdd <fossdd@tutanota.com>
pkgname=argos-translate-git
_pkgname=argos-translate
pkgver=r231.8c4e64e
pkgrel=1
pkgdesc="Offline neural machine translation library and GUI."
arch=(any)
url="https://github.com/argosopentech/argos-translate"
provides=('argos-translate' 'argos-translate-cli')
license=(MIT)
depends=('python' 'python-pip')
makedepends=('python-setuptools' 'git')
install="argos-translate-git.install"
source=('git+https://github.com/argosopentech/argos-translate.git')
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd ${_pkgname}
python setup.py build
}
package() {
cd ${_pkgname}
python setup.py install --root="$pkgdir/" --optimize=1
}
|