summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 90d5f80d03b61277ba585e9cf7e056979f65fe69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Felix Barz <skycoder42.de@gmx.de>
pkgname=qt5-apng-plugin
pkgver=1.1.0
pkgrel=1
pkgdesc="apng image plugin for Qt to support animated PNGs"
arch=('i686' 'x86_64')
url="https://github.com/Skycoder42/qapng"
license=('BSD')
depends=('qt5-base' 'libpng')
makedepends=('git' 'qt5-tools')
optdepends=("repkg: Automatically rebuild the package on dependency updates")
_pkgfqn=$pkgname-$pkgver
source=("$_pkgfqn::git+https://github.com/Skycoder42/qapng.git#tag=$pkgver"
		"$pkgname.rule")
sha256sums=('SKIP'
            '536886c68918305f12db47b6d0e6fd2ebff8b6ac41ebdab7dc2985a23e739909')

prepare() {
  mkdir -p build
}

build() {
  cd build

  qmake "../$_pkgfqn/"
  make qmake_all
  make
}

package() {
  cd build
  make INSTALL_ROOT="$pkgdir" install

  install -D -m644 "../$_pkgfqn/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -D -m644 "../${pkgname}.rule" "$pkgdir/etc/repkg/rules/${pkgname}.rule"
}