blob: 81db8a960745202f6135c433b2686815800e9368 (
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
|
# Maintainer: Aniket-Pradhan aniket17133@iiitd.ac.in
# Contributer: Peter Hofmann <insert_email_here>
pkgname=birtty
pkgver=18.06
pkgrel=2
pkgdesc="Try not to crash that bird"
url="https://www.uninformativ.de/git/birtty"
license=("custom:PIZZA-WARE LICENSE")
makedepends=("gcc" "make")
conflicts=("birtty-git")
arch=("i686" "x86_64")
_gitroot="https://www.uninformativ.de/git/birtty.git"
_gitname="getstream"
build() {
echo "Connecting to the GIT server...."
if [[ -d ${srcdir}/${_gitname} ]] ; then
cd ${_gitname}
git pull origin
echo "The local files are updated..."
else
git clone ${_gitroot} ${_gitname}
fi
echo "GIT checkout done."
echo "Starting make for: ${pkgname}"
if [[ -d ${srcdir}/${_gitname}-build ]]; then
echo "Cleaning the previous build directory..."
rm -rf ${srcdir}/${_gitname}-build
fi
git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
cd ${srcdir}/${_gitname}-build
echo "Starting configure..."
make
}
package() {
cd ${srcdir}/${_gitname}-build
install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|