Add PKGBUILD
This commit is contained in:
parent
619f3830af
commit
afa868fd7b
4
.gitignore
vendored
4
.gitignore
vendored
@ -7,3 +7,7 @@
|
||||
/msys2.exe
|
||||
/msys2.res
|
||||
/msys2.ini
|
||||
/pkg/
|
||||
/src/
|
||||
/*.pkg.tar.xz
|
||||
/*.pkg.tar.xz.sig
|
||||
|
||||
20
Makefile
20
Makefile
@ -1,3 +1,5 @@
|
||||
PREFIX=
|
||||
|
||||
all: msys2.exe msys2.ini mingw32.exe mingw32.ini mingw64.exe mingw64.ini
|
||||
|
||||
.PHONY: all
|
||||
@ -6,25 +8,25 @@ msys2.ini: launcher.ini
|
||||
cp -f $^ $@
|
||||
echo MSYSTEM=MSYS>> $@
|
||||
msys2.res: launcher.rc msys2.ico
|
||||
windres -O COFF -o $@ $< -DMSYSTEM=MSYS -DICONFILE=msys2.ico
|
||||
$(PREFIX)windres -O COFF -o $@ $< -DMSYSTEM=MSYS -DICONFILE=msys2.ico
|
||||
msys2.exe: launcher.c msys2.res
|
||||
gcc -std=c11 -Wall -Wextra -Werror -static -municode -mwindows -o $@ $^
|
||||
strip $@
|
||||
$(PREFIX)gcc -std=c11 -Wall -Wextra -Werror -static -municode -mwindows -o $@ $^
|
||||
$(PREFIX)strip $@
|
||||
|
||||
mingw32.ini: launcher.ini
|
||||
cp -f $^ $@
|
||||
echo MSYSTEM=MINGW32>> $@
|
||||
mingw32.res: launcher.rc mingw32.ico
|
||||
windres -O COFF -o $@ $< -DMSYSTEM=MINGW32 -DICONFILE=mingw32.ico
|
||||
$(PREFIX)windres -O COFF -o $@ $< -DMSYSTEM=MINGW32 -DICONFILE=mingw32.ico
|
||||
mingw32.exe: launcher.c mingw32.res
|
||||
gcc -std=c11 -Wall -Wextra -Werror -static -municode -mwindows -o $@ $^
|
||||
strip $@
|
||||
$(PREFIX)gcc -std=c11 -Wall -Wextra -Werror -static -municode -mwindows -o $@ $^
|
||||
$(PREFIX)strip $@
|
||||
|
||||
mingw64.ini: launcher.ini
|
||||
cp -f $^ $@
|
||||
echo MSYSTEM=MINGW64>> $@
|
||||
mingw64.res: launcher.rc mingw64.ico
|
||||
windres -O COFF -o $@ $< -DMSYSTEM=MINGW64 -DICONFILE=mingw64.ico
|
||||
$(PREFIX)windres -O COFF -o $@ $< -DMSYSTEM=MINGW64 -DICONFILE=mingw64.ico
|
||||
mingw64.exe: launcher.c mingw64.res
|
||||
gcc -std=c11 -Wall -Wextra -Werror -static -municode -mwindows -o $@ $^
|
||||
strip $@
|
||||
$(PREFIX)gcc -std=c11 -Wall -Wextra -Werror -static -municode -mwindows -o $@ $^
|
||||
$(PREFIX)strip $@
|
||||
|
||||
24
PKGBUILD
Normal file
24
PKGBUILD
Normal file
@ -0,0 +1,24 @@
|
||||
pkgname=("msys2-launcher")
|
||||
pkgver=0.2
|
||||
pkgrel=1
|
||||
pkgdesc="Helper for launching MSYS2 shells"
|
||||
arch=('x86_64' 'i686')
|
||||
license=('MIT')
|
||||
makedepends=('mingw-w64-cross-gcc')
|
||||
source=(launcher.c launcher.ini launcher.rc macros.h Makefile {mingw32,mingw64,msys2}.ico)
|
||||
md5sums=('8c08150729060c402f492451786749ec'
|
||||
'b7fb06d6faaf530c187b817088228ce6'
|
||||
'7ebf52f48d7184bb33e6db327bc091dc'
|
||||
'6cec0c5886d59f8ac929a4955108d679'
|
||||
'dc25fea701fa71381b364ed9c5ae5399'
|
||||
'797a8ea3012b22705caadcb17b1291c2'
|
||||
'0237b204a9d09dcadc955b435cefd311'
|
||||
'292ad5cdd78abac9d694cc06819a96fc')
|
||||
|
||||
build() {
|
||||
make PREFIX=/opt/bin/${CARCH}-w64-mingw32-
|
||||
}
|
||||
|
||||
package() {
|
||||
cp "${srcdir}"/{mingw32,mingw64,msys2}.{exe,ini} "${pkgdir}"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user