diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -9,7 +9,6 @@ arch=('x86_64' 'armv6h' 'aarch64') url='https://github.com/projectdiscovery/subfinder' license=('MIT') makedepends=('go') -provides=("${pkgname}") source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") sha256sums=('1adbd9c180f7ca6378796748491e23a808e423268bc61fe63af0206877f0ba68') @@ -26,14 +25,14 @@ build() { export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" cd "${pkgname}-${pkgver}/v2/cmd/${pkgname}" - go build -v -o "${pkgname}" . + go build -v -o "${srcdir}/${pkgname}-${pkgver}/${pkgname}" . } package() { cd "${pkgname}-${pkgver}" - install -Dm755 -t "${pkgdir}/usr/bin" "v2/cmd/${pkgname}/${pkgname}" - install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" 'README.md' - install -Dm644 'LICENSE.md' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dvm755 "${pkgname}" -t "${pkgdir}/usr/bin" + install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dvm644 'LICENSE.md' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } # vim: ts=2 sw=2 et: |