blob: 6e62a6b87e7e724a2e9b1df881fdf291cadba847 (
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
35
36
37
38
39
40
41
|
# Contributor: irmluity <45vw4yz8g@mozmail.com>
pkgname=python-pybase64-git
_pkgname=pybase64
pkgver=1.3.2.r84.g94b9e83
pkgrel=1
pkgdesc="Fast Base64 encoding/decoding in Python"
arch=("any")
url="https://github.com/mayeut/pybase64"
license=('BSD-2-Clause')
depends=('python')
makedepends=('git' 'python-setuptools' 'cmake')
provides=(${_pkgname})
source=(
"git+https://github.com/mayeut/pybase64"
)
sha256sums=(
"SKIP"
)
pkgver() {
cd "$srcdir/${_pkgname}"
printf "%s" "$(git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/^v//')"
}
prepare() {
cd "$srcdir/${_pkgname}"
git submodule update --init --recursive
}
build() {
cd "$srcdir/${_pkgname}"
python setup.py build
}
package() {
cd "$srcdir/${_pkgname}"
python setup.py install --prefix=/usr --root="$pkgdir"
install -Dm644 LICENSE -t ${pkgdir}/usr/share/licenses/python-${_pkgname}/
}
|