summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4ed78a651f8e6d3f51a07d25edc6eab57d883f04 (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
# Maintainer: Vasile Vilvoiu <vasi.vilvoiu@gmail.com>
pkgname=libsstv
pkgver=0.9.0
pkgrel=2
pkgdesc="SSTV encoder/decoder C library"
arch=('x86_64')
url="https://github.com/rimio/libsstv"
license=('MIT')
depends=('imagemagick' 'libsndfile')
makedepends=('cmake' 'gcc')
checkdepends=()
optdepends=()
backup=()
options=(staticlibs)
source=("https://github.com/rimio/$pkgname/archive/v$pkgver.tar.gz" "fix-build.patch")
noextract=()
md5sums=('6a5ee8b62757157429cc5d0cedf1ed61'
         '9ee99327c5cdef8cd350f9f055ea96c2')

prepare() {
    cd $pkgname-$pkgver
    patch -Np1 -i ../fix-build.patch
}

build() {
	cd "$pkgname-$pkgver"
	cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
	make
}

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
}