forked from ben174/rikeripsum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
35 lines (28 loc) · 840 Bytes
/
PKGBUILD
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
# Maintainer: Josh VanderLinden <[email protected]>
pkgname=python-treksum
pkgver=r33.e8a3d28
pkgrel=1
pkgdesc="Library for generating lorem ipsum-like text from Star Trek: TNG scripts"
arch=('any')
url="https://github.com/codekoala/treksum"
license=('custom')
depends=('python')
makedepends=('git')
source=("treksum-git::git+https://github.com/codekoala/treksum")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/treksum-git"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/treksum-git"
mkdir -p treksum/data
python treksum/strip.py
}
package() {
cd "${srcdir}/treksum-git"
python setup.py install --root="${pkgdir}/" --optimize=1
rm -f ${pkgdir}/usr/data/*.gzc
install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
# vim:set ts=2 sw=2 et: