blob: d348d3560d78a6670ed991c6e075c81ac26f3f1b (
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
|
# Maintainer: Simon Paul <simonpaul@mailbox.org>
pkgname=twad-git
_pkgname=twad
pkgver=0.22.1
pkgrel=1
pkgdesc='Manage DOOM engines and mods with the terminal wad launcher'
arch=('any')
url="https://github.com/zmnpl/twad"
license=('MIT')
makedepends=('go' 'git')
source=("git+https://github.com/zmnpl/twad.git")
sha256sums=('SKIP')
pgkver() {
cd "${srcdir}"/${_pkgname}
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}"/${_pkgname}
git checkout v0.22.1
go build \
-trimpath \
-ldflags "-extldflags $LDFLAGS" \
-o $pkgname .
}
package() {
cd "${srcdir}"/${_pkgname}
install -Dm755 $pkgname "$pkgdir"/usr/bin/$_pkgname
install -Dm644 "${srcdir}/${_pkgname}"/LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}
|