dreamdump-git
LOW
maintainer zany130
0 votes
scanned 2026-10-08 04:07:28.496369
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Andres <andresdortiz@gmail.com>
2
pkgname=dreamdump-git
3
pkgver=0.6.0.r2.g742d0ef
4
pkgrel=1
5
pkgdesc='Dump Sega Dreamcast GD-ROM discs'
6
arch=('i686' 'x86_64' 'aarch64')
7
url='https://codeberg.org/MoriGM/dreamdump'
8
license=('EPL-2.0')
9
depends=('glibc')
10
makedepends=('git' 'go>=1.26')
11
provides=('dreamdump')
12
conflicts=('dreamdump' 'dreamdump-bin')
13
options=('!lto' '!debug')
14
source=('dreamdump::git+https://codeberg.org/MoriGM/dreamdump.git#branch=main')
15
sha256sums=('SKIP')
16
17
pkgver() {
18
cd dreamdump
19
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
20
}
21
22
_set_go_env() {
23
# go.mod pins a toolchain. Use the system Go instead of downloading one.
24
export GOTOOLCHAIN=local
25
export GOPATH="${srcdir}"
26
export CGO_CPPFLAGS="${CPPFLAGS}"
27
export CGO_CFLAGS="${CFLAGS}"
28
export CGO_CXXFLAGS="${CXXFLAGS}"
29
export CGO_LDFLAGS="${LDFLAGS}"
30
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
31
}
32
33
prepare() {
34
cd dreamdump
35
_set_go_env
36
go mod download -modcacherw
37
}
38
39
build() {
40
cd dreamdump
41
_set_go_env
42
# main.VERSION is a const, so the linker cannot replace it.
43
go build -o dreamdump .
44
}
45
46
check() {
47
cd dreamdump
48
_set_go_env
49
go test ./...
50
}
51
52
package() {
53
cd dreamdump
54
install -Dm755 dreamdump "$pkgdir/usr/bin/dreamdump"
55
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
56
install -Dm644 DRIVES.csv "$pkgdir/usr/share/doc/$pkgname/DRIVES.csv"
57
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
58
}
59
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-08 04:07:28 | Low | 1 |