-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD.mingw
50 lines (40 loc) · 969 Bytes
/
PKGBUILD.mingw
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
44
45
46
47
48
# Maintainer: Perry Werneck <[email protected]>
# References: https://www.msys2.org/wiki/Creating-Packages/
_realname=dmiget
pkgname=${MINGW_PACKAGE_PREFIX}-${_realname}
source=()
#pkgver() {
# grep AC_INIT ${startdir}/configure.ac | cut -d[ -f3 | cut -d] -f1
#}
pkgver=1.1
pkgrel=1
pkgdesc="Get DMI information using URL format"
url="https://github.com/PerryWerneck/dmiget"
arch=(i686 x86_64)
license=(GPL)
depends=()
makedepends=(autoconf automake make libtool gzip)
checkdepends=()
provides=($pkgname)
conflicts=($pkgname)
prepare() {
rm -fr "$srcdir/$pkgname"
ln -snf "$startdir" "$srcdir/$pkgname"
}
build() {
cd $pkgname
./autogen.sh \
--prefix=${MINGW_PREFIX} \
--build=${MINGW_CHOST} \
--host=${MINGW_CHOST} \
--target=${MINGW_CHOST}
make all
}
package() {
cd $pkgname
make DESTDIR="${pkgdir}" install
install \
-Dm644 \
"LICENSE" \
"${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE"
}