-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
41 lines (34 loc) · 1.27 KB
/
PKGBUILD
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
# Maintainer: Benjamin Vernoux <[email protected]>
pkgname=mingw-bundledlls
pkgver=$(curl -s "https://api.github.com/repos/bvernoux/mingw-bundledlls/tags" | grep '"name":' | sed -E 's/.*"([^"]+)".*/\1/' | head -n1 | sed 's/^v//')
pkgrel=1
pkgdesc="C native app that takes an EXE file, automatically figures out all the DLL dependencies, and copies them next to the EXE."
arch=('x86_64')
url="https://github.com/bvernoux/mingw-bundledlls"
license=('MIT')
# Specify the dependencies for building the package
makedepends=('mingw-w64-x86_64-gcc')
# Fetching the source code from the repository
source=("https://github.com/bvernoux/mingw-bundledlls/archive/v${pkgver}.tar.gz")
sha256sums=('SKIP')
# Build the package
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
make
}
# Install the package
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -Dm755 ${pkgname}.exe "${pkgdir}/usr/bin/${pkgname}.exe"
}
# Specify the package metadata
pkgver() {
echo "$pkgver"
}
# Uncomment the following line if you want to sign the package
# validpgpkeys=('KEY_ID')
# Uncomment the following lines if you want to install the package in /mingw64 instead of /usr
# package() {
# cd "${srcdir}/${pkgname}-${pkgver}"
# install -Dm755 ${pkgname}.exe "${pkgdir}/mingw64/usr/bin/${pkgname}.exe"
# }