Add PKGBUILD & .SRCINFO
commit
0f25ef63d8
|
@ -0,0 +1,16 @@
|
|||
pkgbase = lander-git
|
||||
pkgdesc = URL shortener, pastebin & file-sharing service, written from the ground up in C (development version)
|
||||
pkgver = 0.1.0.r76.ge42004d
|
||||
pkgrel = 1
|
||||
url = https://git.rustybever.be/Chewing_Bever/lander
|
||||
arch = x86_64
|
||||
license = MIT
|
||||
makedepends = gcc
|
||||
makedepends = make
|
||||
depends = glibc
|
||||
depends = libmagic.so=1-64
|
||||
depends = libcurl.so=4-64
|
||||
source = lander::git+https://git.rustybever.be/Chewing_Bever/lander#branch=dev
|
||||
md5sums = SKIP
|
||||
|
||||
pkgname = lander-git
|
|
@ -0,0 +1,5 @@
|
|||
*
|
||||
|
||||
!.gitignore
|
||||
!PKGBUILD
|
||||
!.SRCINFO
|
|
@ -0,0 +1,33 @@
|
|||
# Maintainer: Jef Roosens
|
||||
|
||||
_pkgname='lander'
|
||||
pkgname='lander-git'
|
||||
pkgdesc='URL shortener, pastebin & file-sharing service, written from the ground up in C (development version)'
|
||||
pkgver=0.1.0.r76.ge42004d
|
||||
pkgrel=1
|
||||
arch=('x86_64')
|
||||
|
||||
url='https://git.rustybever.be/Chewing_Bever/lander'
|
||||
license=('MIT')
|
||||
|
||||
makedepends=('gcc' 'make')
|
||||
depends=('glibc' 'libmagic.so=1-64' 'libcurl.so=4-64')
|
||||
|
||||
source=("${_pkgname}::git+https://git.rustybever.be/Chewing_Bever/lander#branch=dev")
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
git -C "${_pkgname}" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${_pkgname}"
|
||||
|
||||
make
|
||||
make -C landerctl
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm755 "${_pkgname}/build/lander" "${pkgdir}/usr/bin/lander"
|
||||
install -Dm755 "${_pkgname}/landerctl/build/landerctl" "${pkgdir}/usr/bin/landerctl"
|
||||
}
|
Loading…
Reference in New Issue