blob: 0e589b8c84dc3b57a8868e78eb0967afd216d9dc (
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
|
# Contributor: fauno <fauno@kiwwwi.com.ar>
pkgname=libretools
pkgver=$(date +%Y%m%d)
pkgrel=3
pkgdesc="Scripts for easing Parabola's tasks"
arch=('any')
url="http://parabolagnulinux.org"
license=('GPL3+')
depends=(wget pacman)
makedepends=(git)
backup=(etc/libretools.conf)
install=libretools.install
source=(libretools.install)
md5sums=('35323c98f82edd0a410fd3372c0de947')
_gitroot="http://www.parabolagnulinux.org/projects/libretools.git" # Asumming setup for libretools
_gitname="libretools"
build() {
cd "$srcdir"
## Git checkout
if [ -d $srcdir/${_gitname} ] ; then
msg "Git checkout: Updating existing tree"
cd ${_gitname} && git pull origin
msg "Git checkout: Tree has been updated"
else
msg "Git checkout: Retrieving sources"
git clone ${_gitroot}
fi
msg "Checkout completed"
## Build
}
package() {
install -d ${pkgdir}/usr/bin
install -d ${pkgdir}/etc
install -m644 ${_gitname}/libretools.conf ${pkgdir}/etc/
rm ${_gitname}/libretools.conf
install -m755 ${_gitname}/libre* ${pkgdir}/usr/bin/
install -m755 ${_gitname}/pkgbuild-check-nonfree ${pkgdir}/usr/bin/
}
|