desktop/telegramqml/PKGBUILD

31 lines
967 B
Bash
Raw Normal View History

2015-08-19 02:46:25 +08:00
pkgname=telegramqml
_pkgname=TelegramQML
2016-01-15 06:15:35 +08:00
pkgver=0.9.2
2015-10-06 08:30:08 +08:00
pkgrel=1
2015-08-19 02:46:25 +08:00
pkgdesc="Telegram API tools for QtQml and Qml"
arch=('x86_64')
url="https://github.com/Aseman-Land/TelegramQML"
license=('GPL')
depends=('qt5-quick1' 'qt5-webkit>=5.5' 'qt5-imageformats' 'qt5-graphicaleffects'
2016-01-15 06:15:35 +08:00
'qt5-quickcontrols' 'qt5-declarative' 'qt5-multimedia' 'libqtelegram-ae>=6.1')
source=("https://github.com/Aseman-Land/TelegramQML/archive/v${pkgver}.tar.gz")
sha256sums=('16d6429fe180531af167dc44bcc799e82b08c9cfa88f1f635155dfcef2558397')
2015-08-19 02:46:25 +08:00
prepare() {
2016-01-15 06:15:35 +08:00
cd "${srcdir}/${_pkgname}-${pkgver}"
2015-08-19 02:46:25 +08:00
sed -i 's#target.path = $$PREFIX/lib/$$LIB_PATH#target.path = $$PREFIX/lib#' telegramqml.pro
2015-10-06 08:30:08 +08:00
2015-08-19 02:46:25 +08:00
mkdir -p build
}
build() {
2016-01-15 06:15:35 +08:00
cd "${srcdir}/${_pkgname}-${pkgver}/build"
2015-10-06 08:30:08 +08:00
qmake-qt5 -r .. PREFIX=/usr INSTALL_LIBS_PREFIX=/usr/lib INSTALL_HEADERS_PREFIX=/usr/include BUILD_MODE+=lib
2015-08-19 02:46:25 +08:00
make
}
package() {
2016-01-15 06:15:35 +08:00
cd "${srcdir}/${_pkgname}-${pkgver}/build"
2015-08-19 02:46:25 +08:00
make INSTALL_ROOT="${pkgdir}" install
}