-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPKGBUILD
More file actions
43 lines (38 loc) · 1.32 KB
/
Copy pathPKGBUILD
File metadata and controls
43 lines (38 loc) · 1.32 KB
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
37
38
39
40
41
42
43
# Maintainer: wszqkzqk <wszqkzqk@qq.com>
pkgname=linsys2
pkgver=r0.00000000.0000000
pkgrel=1
pkgdesc='Build, debug, and run Windows programs on Linux with the full MSYS2 ecosystem. No VM. No dual-boot. No containers.'
arch=('x86_64' 'aarch64' 'riscv64' 'loong64')
url='https://github.com/wszqkzqk/LinSYS2'
license=('GPL-2.0-or-later')
depends=('bash' 'coreutils' 'curl' 'gawk' 'gettext' 'glibc' 'gnupg' 'gpgme' 'grep' 'libarchive' 'openssl' 'which' 'bzip2' 'xz' 'zstd' 'wine' 'python')
makedepends=('git' 'meson' 'ninja' 'asciidoc' 'doxygen' 'gcc' 'patch')
source=("${pkgname}::git+file://${startdir}"
"git+https://github.com/msys2/msys2-pacman.git"
"git+https://github.com/msys2/MSYS2-keyring.git")
sha256sums=('SKIP'
'SKIP'
'SKIP')
pkgver() {
cd "${pkgname}"
printf "r%s.%s.%s" \
"$(git rev-list --count HEAD)" \
"$(git log -1 --format=%cd --date=format:%Y%m%d)" \
"$(git rev-parse --short HEAD)"
}
prepare() {
cd "${pkgname}"
git submodule init
git submodule set-url vendor/msys2-pacman "$srcdir"/msys2-pacman
git submodule set-url vendor/msys2-keyring "$srcdir"/MSYS2-keyring
git -c protocol.file.allow=always submodule update
}
build() {
cd "${pkgname}"
make
}
package() {
cd "${pkgname}"
make DESTDIR="${pkgdir}" PREFIX=/usr install
}