updated PKGBUILD files

This commit is contained in:
Martchus 2015-04-30 00:59:46 +02:00
parent 8631ecdbe9
commit 5efb98114e
2 changed files with 6 additions and 4 deletions

View File

@ -9,17 +9,18 @@ makedepends=('qt5-tools')
install=${pkgname}.install
url="https://github.com/Martchus/passwordmanager"
source=("passwordmanager-${pkgver}.tar.gz::https://github.com/Martchus/passwordmanager/archive/v${pkgver}.tar.gz")
_reponame=passwordmanager
sha256sums=('d359927292464fcf41c8a11315ff79e2')
# head end
build() {
cd $srcdir/$pkgname
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
INSTALL_ROOT=$pkgdir/usr/ qmake-qt5 "$pkgname.pro" -r -spec linux-g++
make && make updateqm
}
package() {
cd $srcdir/$pkgname
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
make install
}

View File

@ -9,13 +9,14 @@ depends=('mingw-w64-crt' 'mingw-w64-qt5-base' 'mingw-w64-qtutilities' 'mingw-w64
makedepends=('mingw-w64-gcc')
url="https://github.com/Martchus/passwordmanager"
source=("passwordmanager-${pkgver}.tar.gz::https://github.com/Martchus/passwordmanager/archive/v${pkgver}.tar.gz")
_reponame=passwordmanager
sha256sums=('4e94aff9225d8873f752995c1bcc5f15')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
# head end
build() {
cd $srcdir/$_name
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
# build for each architecture
for _arch in ${_architectures}; do
mkdir -p build-${_arch} && pushd build-${_arch}
@ -26,7 +27,7 @@ build() {
}
package() {
cd $srcdir/$_name
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
for _arch in ${_architectures}; do
# bin stuff
pushd build-${_arch}