blob: f000fa33e4aaeeeed04e19dd7fc48f6f4f88f652 (
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
|
# Maintainer: alekulyn
pkgname=umo-git
pkgver=0.8.1.r0.geb55ddb
pkgrel=1
pkgdesc="An automatic modlist downloader for Modding-OpenMW.com modlists"
arch=('i686' 'x86_64')
url="https://modding-openmw.gitlab.io/umo/"
license=('GPL')
makedepends=(git python gcc patchelf binutils)
provides=(umo)
conflicts=(umo-dev-bin)
options=(!lto !strip)
source=('git+https://gitlab.com/modding-openmw/umo')
sha1sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname%-git}"
_tag="$(git describe --tags $(git rev-list --tags --max-count=1))"
_numcommits="$(git rev-list $(git rev-list --tags --no-walk --max-count=1)..HEAD --count)"
_hash="$(git rev-parse --short HEAD)"
printf "%s.r%s.g%s" "$_tag" "$_numcommits" "$_hash"
}
prepare() {
cd "${srcdir}/${pkgname%-git}"
}
build() {
cd "$srcdir/umo"
}
package() {
cd "$srcdir/umo"
mkdir -p $pkgdir/usr/bin
make install DEST_BINDIR=$pkgdir/usr/bin
}
|