blob: 9cf3589622eba3a99b14f4ffe5ac979707bab1c2 (
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
|
# with fixes by 0xAA <0xaa@dmg.sx>
_pkgname="cgasm"
pkgname="${_pkgname}-git"
pkgver=1.0.0.r0.g6c54b38
pkgrel=1
pkgdesc="Commandline IA32/AMD64 documentation"
arch=('i686' 'x86_64')
url="https://github.com/bnagy/cgasm"
license=('GPL2')
makedepends=('git' 'go')
source=("${_pkgname}"::"git+${url}.git")
md5sums=('SKIP')
pkgver () {
cd "${srcdir}/${_pkgname}"
git describe --long --tags --abbrev=7 --exclude='*[a-zA-Z][a-zA-Z]*' \
| sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
}
prepare() {
cd "${srcdir}/${_pkgname}"
go mod init github.com/bnagy/cgasm
go mod tidy
}
build() {
cd "${srcdir}/${_pkgname}"
go build
}
package() {
cd "${srcdir}/${_pkgname}"
install -d -m755 "${pkgdir}/usr/bin"
install -m755 cgasm "${pkgdir}/usr/bin/cgasm"
}
|