pkgname=highly-theoretical-git pkgver=r62.eb3f3e0 pkgrel=1 pkgdesc="Highly Theoretical Sega Saturn and Dreamcast Sound Format (SSF and DSF) emulator library" arch=(i686 x86_64) url='https://bitbucket.org/losnoco/highly_theoretical' license=(GPL3) depends=(glibc) makedepends=('git' 'qt5-base') provides=(${pkgname%-git}) conflicts=(${pkgname%-git}) source=("${pkgname}::git+https://bitbucket.org/losnoco/highly_theoretical.git") sha256sums=('SKIP') pkgver() { cd "$srcdir/$pkgname" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { cd "$srcdir/$pkgname"/Core # Don't request a static lib, it prevents a dynamic one from being built. sed -i '/^CONFIG /s/ staticlib//' Core.pro # Install the header files too. cat >> Core.pro <