-
Notifications
You must be signed in to change notification settings - Fork 7
/
PKGBUILD
33 lines (28 loc) · 850 Bytes
/
PKGBUILD
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
# Contributor: Felix Kaiser <[email protected]>
#
# @Git users: This is a package build description file for Arch Linux.
# @Arch users: This file is included in the projects git repository.
pkgname=eagle-diff
pkgver=0.1.0
pkgrel=1
pkgdesc="Show differences between Cadsoft Eagle files"
url='https://github.com/fxkr/eagle-diff'
license=('BSD')
depends=('python2' 'python2-imaging')
arch=('any')
source=('eagle-diff-git::git://github.com/fxkr/eagle-diff.git')
md5sums=('SKIP')
pkgver() {
# Use tag of latest commit
cd "$srcdir/eagle-diff-git"
git describe --always | sed -e 's|-|.|g' -e 's|v||'
}
build() {
cd "$srcdir/eagle-diff-git"
python2 setup.py build
}
package() {
cd "$srcdir/eagle-diff-git"
python2 setup.py install --optimize=1 --root="$pkgdir"
install -Dm644 eagle-diff.1 "$pkgdir/usr/share/man/man1/eagle-diff.1"
}