blob: 8b717596daefac5640224883f37606c0b7c1514e (
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
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Linus Dierheimer Linus@Dierheimer.de
_gitname='run'
_gitroot='https://github.com/LinusDierheimer/run.git'
pkgname='run'
pkgdesc='start programs from shell in a configurable environment'
pkgver='1'
pkgrel='1'
#epoch=
arch=('x86_64')
url=$_gitroot
license=('GPL3')
#groups=()
depends=('sudo')
makedepends=('git' 'cmake')
#checkdepends=()
#optdepends=()
#provides=()
#conflicts=()
#replaces=()
#backup=()
#options=()
#install="$pkgname.install"
#changelog=
#source=()
#noextract=()
#sha512sums=()
PKGEXT='.pkg.tar.gz'
build() {
cd "$srcdir"
if [ -d "${srcdir}/${_gitname}" ] ; then
cd ${_gitname}
git pull --rebase
else
git clone ${_gitroot}
cd ${_gitname}
fi
mkdir -p build/
cd build/
cmake ..
make
}
package() {
mkdir -p "${pkgdir}/usr/bin/"
mkdir -p "${pkgdir}/usr/include/"
install -C "${srcdir}/${_gitname}/build/run" "${pkgdir}/usr/bin/"
install -C "${srcdir}/${_gitname}/src/run.h" "${pkgdir}/usr/include/"
}
|