mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Move specific filename samples into their own dir
This commit is contained in:
43
samples/shell/filenames/PKGBUILD
Normal file
43
samples/shell/filenames/PKGBUILD
Normal file
@@ -0,0 +1,43 @@
|
||||
# Maintainer: Daniel Micay <danielmicay@gmail.com>
|
||||
pkgname=stud-git
|
||||
pkgver=20120316
|
||||
pkgrel=1
|
||||
pkgdesc="The Scalable TLS Unwrapping Daemon"
|
||||
arch=(i686 x86_64)
|
||||
url="https://github.com/bumptech/stud"
|
||||
license=('BSD')
|
||||
depends=(libev openssl)
|
||||
makedepends=(git)
|
||||
provides=(stud)
|
||||
conflicts=(stud)
|
||||
|
||||
_gitroot=https://github.com/bumptech/stud.git
|
||||
_gitname=stud
|
||||
|
||||
build() {
|
||||
cd "$srcdir"
|
||||
msg "Connecting to GIT server...."
|
||||
|
||||
if [[ -d "$_gitname" ]]; then
|
||||
cd "$_gitname" && git pull origin
|
||||
msg "The local files are updated."
|
||||
else
|
||||
git clone "$_gitroot" "$_gitname"
|
||||
fi
|
||||
|
||||
msg "GIT checkout done or server timeout"
|
||||
msg "Starting build..."
|
||||
|
||||
rm -rf "$srcdir/$_gitname-build"
|
||||
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
|
||||
cd "$srcdir/$_gitname-build"
|
||||
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_gitname-build"
|
||||
make PREFIX=/usr DESTDIR="$pkgdir/" install
|
||||
install -Dm755 init.stud "$pkgdir/etc/rc.d/stud"
|
||||
mkdir -p "$pkgdir/etc/stud"
|
||||
}
|
||||
Reference in New Issue
Block a user