blob: ce4702627d72099fc3e1bfd2b3e69fdd5f82cbec (
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
40
41
42
43
|
# Maintainer: Danilo Bargen <aur at dbrgn dot ch>
pkgname=librepcb-git
_fullname=LibrePCB
pkgver=r549.95b8d1a
pkgrel=4
pkgdesc="LibrePCB is a free EDA software to develop printed circuit boards."
arch=('x86_64' 'i686')
url="http://librepcb.org/"
license=('GPL')
depends=('qt5-webkit' 'qt5-tools' 'desktop-file-utils' 'shared-mime-info')
makedepends=('git' 'qconf')
provides=('librepcb')
conflicts=('librepcb')
install=${pkgname}.install
source=('git+https://github.com/LibrePCB/LibrePCB')
md5sums=('SKIP')
build() {
# Temporary build dir
rm -rf "$srcdir/$_fullname-build"
git clone "$srcdir/$_fullname" "$srcdir/$_fullname-build"
cd "$srcdir/$_fullname-build"
# Prepare
cd "$srcdir/$_fullname-build"
mkdir build && cd build
qmake -r ../librepcb.pro PREFIX=${pkgdir}/usr
# Compile
make
}
package() {
cd "$srcdir/$_fullname-build/build"
make install
}
pkgver() {
cd "$srcdir/$_fullname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
# vim:set ts=2 sw=2 et:
|