47 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
	
		
			1.6 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
 | 
						|
pkgname=emgauwa-core
 | 
						|
pkgver=0.2.1
 | 
						|
pkgrel=1
 | 
						|
epoch=
 | 
						|
pkgdesc=""
 | 
						|
arch=('any')
 | 
						|
url="https://git.serguzim.me/emgauwa/core"
 | 
						|
license=('unknown')
 | 
						|
groups=()
 | 
						|
depends=('glibc' 'sqlite')
 | 
						|
makedepends=('make' 'cmake' 'gcc')
 | 
						|
conflicts=('emgauwa-core')
 | 
						|
backup=('etc/emgauwa/core.ini')
 | 
						|
source=("https://git.serguzim.me/emgauwa/core/archive/v$pkgver.tar.gz"
 | 
						|
        "core.ini"
 | 
						|
        "emgauwa-core-testing.service"
 | 
						|
        "emgauwa-core-testing.sysusers"
 | 
						|
        "emgauwa-core-testing.tmpfiles")
 | 
						|
sha256sums=('82984c9742a63f9e8a561229b00926a85ff27a283054aa92f8ec712d67f87222'
 | 
						|
            '03d7af2f2a47b73d17467f98967be3a334fe4eff98b86b701500843478df1e87'
 | 
						|
            '559c675302f626dfded86660866554fb78f3fcbae51e5879eee65c9384a06d52'
 | 
						|
            'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
 | 
						|
            '0531f10303410afd7e53099e66b124ef2fd14afec9d33c4a0146793375acb6c2')
 | 
						|
 | 
						|
prepare() {
 | 
						|
    cd "$pkgname"
 | 
						|
    mkdir -p "build"
 | 
						|
}
 | 
						|
 | 
						|
build() {
 | 
						|
    cd "$pkgname/build" || exit 1
 | 
						|
    cmake ..
 | 
						|
    make
 | 
						|
}
 | 
						|
 | 
						|
package() {
 | 
						|
    install -Dm755 "${pkgname}/build/core"      "${pkgdir}/usr/bin/emgauwa-core"
 | 
						|
 | 
						|
    install -Dm600 "core.ini"                   "${pkgdir}/etc/emgauwa/core.ini"
 | 
						|
    install -Dm644 "${pkgname}.service"         "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
 | 
						|
    install -Dm644 "${pkgname}.tmpfiles"        "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
 | 
						|
    install -Dm644 "${pkgname}.sysusers"        "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
 | 
						|
    
 | 
						|
    install -Ddm750                             "${pkgdir}/var/lib/emgauwa"
 | 
						|
    install -Ddm750                             "${pkgdir}/var/lib/emgauwa/core"
 | 
						|
}
 |