Skip to content

Commit

Permalink
ppc-libexpat: new package (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryOderNichts authored Jan 16, 2024
1 parent 1d5066b commit 3da8155
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions ppc/libexpat/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
pkgname=ppc-libexpat
pkgver=2.5.0
pkgrel=1
pkgdesc="Expat, a stream-oriented XML parser library written in C."
arch=('any')
url="https://libexpat.github.io/"
license=('MIT')
options=(!strip libtool staticlibs)
groups=("ppc-portlibs")
source=("https://github.com/libexpat/libexpat/releases/download/R_${pkgver//./_}/expat-$pkgver.tar.bz2")
sha256sums=('6f0e6e01f7b30025fa05c85fdad1e5d0ec7fd35d9f61b22f34998de11969ff67')
makedepends=('dkp-toolchain-vars' 'ppc-pkg-config')

build() {
cd expat-$pkgver

source /opt/devkitpro/ppcvars.sh

./configure \
--prefix="${PORTLIBS_PREFIX}" \
--host="powerpc-eabi" \
--disable-shared --enable-static

make
}

package() {
cd expat-$pkgver

source /opt/devkitpro/ppcvars.sh

make DESTDIR="$pkgdir" install
}

0 comments on commit 3da8155

Please sign in to comment.