blob: 21ba2ff362e2315556b53f6ea8bdf50dd0daf1f1 (
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
37
38
39
|
# Maintainer: John Troxler <firstname dot lastname at gmail dot com>
pkgname=lsynth
pkgver=3.1.1
pkgrel=1
pkgdesc="LSynth is a program that synthesizes bendable parts for LDraw files"
arch=('x86_64')
url="https://deeice.github.io/lsynth/"
license=('GPL2')
depends=(glibc)
makedepends=(cmake)
source=("$pkgname-$pkgver.tar.gz::https://github.com/deeice/$pkgname/archive/v$pkgver.tar.gz"
"local://CMakeLists.txt"
"local://$pkgname-$pkgver.patch")
sha256sums=('8c1a4286b7ec8512de5c5d61cb6a5a374490dec159cabcf8cd9aa560203d3433'
'4e6ad6706f685114edbbaa90fc2d739c4f6040c31338dee1782befc6efbbbb6f'
'182d2bceba128ac66df73a05e4c87f45f78bff0323c492d8207c80019335a9a3')
prepare() {
mkdir "$pkgname-$pkgver-new"
cd "$pkgname-$pkgver-new"
mkdir src
cp -r "../$pkgname-$pkgver/$pkgname/$pkgname/"* src/
patch src/lsynthcp.c "$srcdir/$pkgname-$pkgver.patch"
cp ../CMakeLists.txt .
}
build() {
cd "$pkgname-$pkgver-new"
mkdir build
cd build
cmake ..
cmake --build .
}
package() {
cd "$pkgname-$pkgver-new/build"
cmake --install . --prefix "$pkgdir/"
}
|