diff options
author | Chocobo1 | 2020-10-07 13:31:46 +0800 |
---|---|---|
committer | Chocobo1 | 2020-10-07 13:31:46 +0800 |
commit | 0d7a6606309c187ea826a02a2547f254be577ea5 (patch) | |
tree | 4971d01cb2c3e7b858bcf30d387fb97df909a6d5 /PKGBUILD | |
parent | b951f121b2e8878e6adb8c0b24c412a489946489 (diff) | |
download | aur-0d7a6606309c187ea826a02a2547f254be577ea5.tar.gz |
upgpkg: expat-git 2.2.10.r5.g0d9b0812-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 13 insertions, 15 deletions
@@ -1,7 +1,7 @@ # Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> pkgname=expat-git -pkgver=2.2.3.r39.g2cb09ae +pkgver=2.2.10.r5.g0d9b0812 pkgrel=1 pkgdesc="A stream-oriented XML parser library written in C" arch=('i686' 'x86_64') @@ -15,12 +15,6 @@ source=("git+https://github.com/libexpat/libexpat.git") sha256sums=('SKIP') -prepare() { - cd "libexpat/expat" - - mkdir -p "_build" -} - pkgver() { cd "libexpat/expat" @@ -28,21 +22,25 @@ pkgver() { } build() { - cd "libexpat/expat/_build" + cd "libexpat/expat" - cmake -DCMAKE_INSTALL_PREFIX="/usr" ../ - make + cmake \ + -B "_build" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + ./ + make -C "_build" } check() { - cd "libexpat/expat/_build" + cd "libexpat/expat" - make test + make -C "_build" test } package() { - cd "libexpat/expat/_build" + cd "libexpat/expat" - make DESTDIR="$pkgdir" install - install -Dm644 "../COPYING" "$pkgdir/usr/share/licenses/expat/COPYING" + make -C "_build" DESTDIR="$pkgdir" install + install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/expat" } |