Skip to content

Instantly share code, notes, and snippets.

@bbidulock bbidulock/PKGBUILD
Last active Aug 29, 2015

Embed
What would you like to do?
PKGBUILD for linuxstopmotion-git
# Maintainer: Mark Coolen <mark dot coolen at gmail dot com>
pkgname=linuxstopmotion-git
_realname=linuxstopmotion
pkgver=0.8.0.r0.gb08ca1c
pkgrel=1
epoch=1
pkgdesc="software for capturing and creating stop-motion animations - development version"
arch=('i686' 'x86_64')
url="http://www.linuxstopmotion.org"
license=('GPL2')
depends=('qt4' 'sdl_image' 'libvorbis' 'libxml2')
makedepends=('git' 'libtar')
install=$_realname.install
conflicts=('stopmotion')
source=($_realname::git+http://git.code.sf.net/p/$_realname/code)
md5sums=('SKIP')
pkgver() {
cd "$_realname"
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$_realname"
lrelease-qt4 stopmotion.pro
qmake-qt4 PREFIX=/usr stopmotion.pro
sed -i '/^LIBS/s|$| -lX11|' Makefile
make
}
package() {
cd "$srcdir/$_realname"
sed -e 's/install_desktop install_dummy/install_desktop/' -i Makefile.Release
make INSTALL_ROOT="$pkgdir" install
install -D -m644 stopmotion.desktop "$pkgdir"/usr/share/applications/stopmotion.desktop
install -D -m644 graphics/stopmotion.png "$pkgdir"/usr/share/pixmaps/stopmotion.png
install -D -m644 stopmotion.mime "$pkgdir"/usr/share/mime-info/stopmotion.mime
install -D -m644 stopmotion.1 "$pkgdir"/usr/share/man/man1/stopmotion.1
gzip "$pkgdir"/usr/share/man/man1/stopmotion.1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.