aboutsummaryrefslogtreecommitdiff
path: root/libplist/Pkgfile
blob: fc9a2b8af22d788d310b29fe1a6c60e32587997a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Description: Library handling Apple property list files
# URL: https://libimobiledevice.org
# Maintainer: Jay Lanagan, j at lngn dot net
# Depends on: python3-cython

name=libplist
version=2.7.0
release=1
source=(https://github.com/libimobiledevice/$name/releases/download/$version/$name-$version.tar.bz2)

build() {
  cd $name-$version

  # seems to fail on some platforms without setting python during build
  export PYTHON="/usr/bin/python3"
  ./configure \
  --prefix=/usr

  make
  make DESTDIR=$PKG install

  find $PKG/usr/lib/* -name "*.la" -type f|xargs rm -f
}