dreamdump
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
3
pkgver=0.6.0
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=('MIT')
9
depends=('glibc')
10
makedepends=('go>=1.26')
11
conflicts=('dreamdump-bin' 'dreamdump-git')
12
options=('!lto' '!debug')
13
source=("$pkgname-$pkgver.tar.gz::https://codeberg.org/MoriGM/dreamdump/archive/$pkgver.tar.gz")
14
sha256sums=('7ec6930802a6a952e45ac551f0d773c833b4524bda8b3e4168e0ede4e0226f88')
15
16
_set_go_env() {
17
# go.mod pins a toolchain. Use the system Go instead of downloading one.
18
export GOTOOLCHAIN=local
19
export GOPATH="${srcdir}"
20
export CGO_CPPFLAGS="${CPPFLAGS}"
21
export CGO_CFLAGS="${CFLAGS}"
22
export CGO_CXXFLAGS="${CXXFLAGS}"
23
export CGO_LDFLAGS="${LDFLAGS}"
24
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
25
}
26
27
prepare() {
28
cd "$pkgname"
29
_set_go_env
30
go mod download -modcacherw
31
}
32
33
build() {
34
cd "$pkgname"
35
_set_go_env
36
# main.VERSION is a const, so the linker cannot replace it.
37
go build -o "$pkgname" .
38
}
39
40
check() {
41
cd "$pkgname"
42
_set_go_env
43
go test ./...
44
}
45
46
package() {
47
cd "$pkgname"
48
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
49
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
50
install -Dm644 DRIVES.csv "$pkgdir/usr/share/doc/$pkgname/DRIVES.csv"
51
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
52
}
53
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-08 04:07:28 | Low | 1 |