-
Notifications
You must be signed in to change notification settings - Fork 493
/
Copy pathPKGBUILD
62 lines (52 loc) · 1.59 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
pkgname=('expat' 'libexpat' 'libexpat-devel')
pkgver=2.6.4
pkgrel=1
pkgdesc="An XML parser library"
arch=('i686' 'x86_64')
url="https://libexpat.github.io/"
msys2_repository_url="https://github.com/libexpat/libexpat"
msys2_references=(
"cpe: cpe:/a:libexpat_project:libexpat"
)
license=('spdx:MIT')
makedepends=('autotools' 'gcc')
source=(https://github.com/libexpat/libexpat/releases/download/R_${pkgver//./_}/${pkgname}-${pkgver}.tar.xz{,.asc})
sha256sums=('a695629dae047055b37d50a0ff4776d1d45d0a4c842cf4ccee158441f55ff7ee'
'SKIP')
validpgpkeys=('3176EF7DB2367F1FCA4F306B1F9B0E909AF37285') # Sebastian Pipping
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
./buildconf.sh -f
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr
make
make DESTDIR=${srcdir}/dest install
}
check() {
cd ${srcdir}/${pkgname}-${pkgver}
make check
}
package_expat() {
mkdir -p ${pkgdir}/usr/bin
cp -f ${srcdir}/dest/usr/bin/xml* ${pkgdir}/usr/bin/
cp -rf ${srcdir}/dest/usr/share ${pkgdir}/usr/
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
}
package_libexpat() {
groups=('libraries')
depends=('gcc-libs')
mkdir -p ${pkgdir}/usr/bin
cp -f ${srcdir}/dest/usr/bin/*.dll ${pkgdir}/usr/bin/
}
package_libexpat-devel() {
pkgdesc="Libexpat headers and libraries"
options=('staticlibs')
groups=('development')
depends=("libexpat=${pkgver}")
mkdir -p ${pkgdir}/usr
cp -rf ${srcdir}/dest/usr/include ${pkgdir}/usr/
cp -rf ${srcdir}/dest/usr/lib ${pkgdir}/usr/
}