desktop/libqtelegram-ae/PKGBUILD

30 lines
842 B
Bash
Raw Normal View History

2015-07-04 04:59:15 +08:00
pkgname=libqtelegram-ae
_pkgname=libqtelegram-aseman-edition
2016-01-15 06:12:02 +08:00
pkgver=6.1
pkgrel=1
2015-07-04 04:59:15 +08:00
pkgdesc="Telegram library written in Qt based on telegram-cli code"
arch=('x86_64')
license=('GPL3')
url=("https://launchpad.net/libqtelegram")
depends=('qt5-base' 'qt5-multimedia')
makedepends=('cmake')
2016-01-15 06:12:02 +08:00
source=("https://github.com/Aseman-Land/libqtelegram-aseman-edition/archive/v$pkgver-stable.tar.gz")
sha1sums=('2221f71a3f97023bbaeca801cf1f0217475ac12a')
2015-07-04 04:59:15 +08:00
prepare() {
2016-01-15 06:12:02 +08:00
cd $_pkgname-$pkgver-stable
# sed -i 's#target.path = $$PREFIX/lib/$$LIB_PATH#target.path = $$PREFIX/lib#' libqtelegram-ae.pro
2015-07-04 04:59:15 +08:00
mkdir -p build
}
build() {
2016-01-15 06:12:02 +08:00
cd $_pkgname-$pkgver-stable/build
qmake-qt5 -r .. PREFIX=/usr INSTALL_LIBS_PREFIX=/usr/lib INSTALL_HEADERS_PREFIX=/usr/include
2015-07-04 04:59:15 +08:00
make
}
package() {
2016-01-15 06:12:02 +08:00
cd $_pkgname-$pkgver-stable/build
2015-07-04 04:59:15 +08:00
make INSTALL_ROOT="$pkgdir" install
}