Add PKGBUILD & .SRCINFO

main
Jef Roosens 2023-11-16 12:37:46 +01:00
commit 0f25ef63d8
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
3 changed files with 54 additions and 0 deletions

16
.SRCINFO 100644
View File

@ -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

5
.gitignore vendored 100644
View File

@ -0,0 +1,5 @@
*
!.gitignore
!PKGBUILD
!.SRCINFO

33
PKGBUILD 100644
View File

@ -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"
}