mirror of
https://github.com/archlinux/aur.git
synced 2026-02-07 12:41:55 +01:00
New package.
This commit is contained in:
commit
76ce9da99e
3 changed files with 82 additions and 0 deletions
22
.SRCINFO
Normal file
22
.SRCINFO
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
pkgbase = android-x86-64-libwmf
|
||||
pkgdesc = A library for reading vector images in Microsoft's native Windows Metafile Format (WMF) (Android x86-64)
|
||||
pkgver = 0.2.13
|
||||
pkgrel = 1
|
||||
url = http://wvware.sourceforge.net/libwmf.html
|
||||
arch = any
|
||||
license = LGPL
|
||||
makedepends = android-configure
|
||||
makedepends = android-x86-64-libxt
|
||||
depends = android-x86-64-libx11
|
||||
depends = android-x86-64-libjpeg
|
||||
depends = android-x86-64-freetype2
|
||||
depends = android-x86-64-expat
|
||||
optdepends = android-x86-64-gdk-pixbuf2: for pixbuf loader
|
||||
options = !strip
|
||||
options = !buildflags
|
||||
options = staticlibs
|
||||
options = !emptydirs
|
||||
source = https://github.com/caolanm/libwmf/archive/v0.2.13.tar.gz
|
||||
sha256sums = 18ba69febd2f515d98a2352de284a8051896062ac9728d2ead07bc39ea75a068
|
||||
|
||||
pkgname = android-x86-64-libwmf
|
||||
6
.gitignore
vendored
Normal file
6
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
pkg
|
||||
src
|
||||
*.tar.xz
|
||||
*.tar.gz
|
||||
*.tar.bz2
|
||||
*.asc
|
||||
54
PKGBUILD
Normal file
54
PKGBUILD
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
|
||||
# Contributor: Eric Bélanger <eric@archlinux.org>
|
||||
|
||||
_android_arch=x86-64
|
||||
|
||||
pkgname=android-${_android_arch}-libwmf
|
||||
pkgver=0.2.13
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
pkgdesc="A library for reading vector images in Microsoft's native Windows Metafile Format (WMF) (Android ${_android_arch})"
|
||||
url="http://wvware.sourceforge.net/libwmf.html"
|
||||
license=('LGPL')
|
||||
depends=("android-${_android_arch}-libx11"
|
||||
"android-${_android_arch}-libjpeg"
|
||||
"android-${_android_arch}-freetype2"
|
||||
"android-${_android_arch}-expat")
|
||||
makedepends=('android-configure'
|
||||
"android-${_android_arch}-libxt")
|
||||
optdepends=("android-${_android_arch}-gdk-pixbuf2: for pixbuf loader")
|
||||
options=(!strip !buildflags staticlibs !emptydirs)
|
||||
source=("https://github.com/caolanm/libwmf/archive/v$pkgver.tar.gz")
|
||||
sha256sums=('18ba69febd2f515d98a2352de284a8051896062ac9728d2ead07bc39ea75a068')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/libwmf-$pkgver"
|
||||
source android-env ${_android_arch}
|
||||
|
||||
autoreconf -fiv
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/libwmf-$pkgver"
|
||||
source android-env ${_android_arch}
|
||||
|
||||
# --x-includes=DIR X include files are in DIR
|
||||
# --x-libraries=DIR X library files are in DIR
|
||||
|
||||
export CFLAGS="${CFLAGS} -I${ANDROID_PREFIX_INCLUDE}/libpng"
|
||||
export LDFLAGS="${LDFLAGS} -L\"${PWD}/src/.libs\""
|
||||
|
||||
android-${_android_arch}-configure \
|
||||
--with-pic
|
||||
make $MAKEFLAGS
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/libwmf-$pkgver"
|
||||
source android-env ${_android_arch}
|
||||
|
||||
make DESTDIR="$pkgdir" install
|
||||
rm -f "${ANDROID_PREFIX_BIN}/"{wmf2eps,wmf2fig,wmf2gd,wmf2svg,wmf2x}
|
||||
find "${pkgdir}/${ANDROID_PREFIX_LIB}" -type f -name '*.so' -exec ${ANDROID_STRIP} -g --strip-unneeded {} \;
|
||||
find "${pkgdir}/${ANDROID_PREFIX_LIB}" -type f -name '*.a' -exec ${ANDROID_STRIP} -g {} \;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue