blob: 544d36efbe95c6d5c81587d0d61ee8ad0f93fc1a (
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
|
# Maintainer: Hao Long <aur@esd.cc>
pkgname=gitjacker
pkgver=0.1.0
pkgrel=1
pkgdesc="Leak git repositories from misconfigured websites"
arch=("x86_64" "i686")
url="https://github.com/liamg/gitjacker"
license=("Unlicense")
depends=("git")
makedepends=("go")
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('50ba338c5bbef042beca4107c981b207b291ee43bd3b5c14224ac85a388abdbc')
build() {
cd ${pkgname}-${pkgver}
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
go build -buildmode=pie -trimpath -modcacherw -mod=vendor -o=gitjacker \
-ldflags="-linkmode=external -X=github.com/liamg/gitjacker/internal/app/version.Version=v${pkgver}" \
cmd/gitjacker/main.go
}
package() {
cd ${pkgname}-${pkgver}
install -Dm755 gitjacker ${pkgdir}/usr/bin/${pkgname}
}
|