outsourced PKBBUILD files

This commit is contained in:
Martchus 2015-06-25 23:58:59 +02:00
parent 1c3dccb1a2
commit 7da37e888d
3 changed files with 1 additions and 75 deletions

View File

@ -1,25 +0,0 @@
pkgname=tagparser
pkgver=1.1.5
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="Library for reading and editing meta-data of several media formats."
license=('GPL')
depends=('c++utilities')
makedepends=
url="https://github.com/Martchus/tagparser"
source=("tagparser-${pkgver}.tar.gz::https://github.com/Martchus/tagparser/archive/v${pkgver}.tar.gz")
_reponame=tagparser
sha256sums=('0e2db5af62634a9484f22721040c2e20')
# head end
build() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
INSTALL_ROOT=$pkgdir/usr/ qmake-qt5 "$pkgname.pro" -r -spec linux-g++
make
}
package() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
make install
}

View File

@ -1,47 +0,0 @@
_name=tagparser
pkgname=mingw-w64-tagparser
pkgver=1.1.5
pkgrel=1
arch=('any')
pkgdesc="Library for reading and editing meta-data of several media formats (mingw-w64)."
license=('GPL')
depends=('mingw-w64-crt' 'mingw-w64-c++utilities')
makedepends=('mingw-w64-gcc' 'mingw-w64-qt5-base')
url="https://github.com/Martchus/tagparser"
source=("tagparser-${pkgver}.tar.gz::https://github.com/Martchus/tagparser/archive/v${pkgver}.tar.gz")
_reponame=tagparser
sha256sums=('4e94aff9225d8873f752995c1bcc5f15')
options=('staticlibs' '!strip')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
# head end
build() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
# build utilities for each architecture
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
INSTALL_ROOT=$pkgdir/usr/ ${_arch}-qmake-qt5 -r ../${_name}.pro
make
popd
done
}
package() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
for _arch in ${_architectures}; do
# bin stuff
pushd build-${_arch}
${_arch}-strip --strip-unneeded ./release/${_name}.dll
${_arch}-strip --strip-unneeded ./release/lib${_name}.dll.a
install -m755 -D ./release/${_name}.dll $pkgdir/usr/${_arch}/bin/${_name}.dll
install -m755 -D ./release/lib${_name}.dll.a $pkgdir/usr/${_arch}/lib/lib${_name}.dll.a
popd
# include files
for dir in ./ avc id3 matroska mp4 mpegaudio ogg vorbis wav
do
mkdir -p $pkgdir/usr/${_arch}/include/${_name}/$dir
install -m644 -D ./$dir/*.h $pkgdir/usr/${_arch}/include/${_name}/$dir
done
done
}

View File

@ -153,9 +153,7 @@ forcefullparsedefault {
OTHER_FILES += \
README.md \
LICENSE \
pkgbuild/default/PKGBUILD \
pkgbuild/mingw-w64/PKGBUILD
LICENSE
INCLUDEPATH += ../