Move from arch to debian (wip)
This commit is contained in:
		
							parent
							
								
									59d90a0c30
								
							
						
					
					
						commit
						9946a22945
					
				
					 3 changed files with 53 additions and 5 deletions
				
			
		
							
								
								
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -1,3 +1,4 @@
 | 
				
			||||||
pkg/
 | 
					pkg/
 | 
				
			||||||
src/
 | 
					src/
 | 
				
			||||||
*.tar.*
 | 
					*.tar.*
 | 
				
			||||||
 | 
					*.deb
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,15 +3,15 @@ pkgname=emgauwa-core
 | 
				
			||||||
pkgver=0.3.4
 | 
					pkgver=0.3.4
 | 
				
			||||||
pkgrel=1
 | 
					pkgrel=1
 | 
				
			||||||
epoch=
 | 
					epoch=
 | 
				
			||||||
pkgdesc=""
 | 
					pkgdesc='Emgauwa is a tool to schedule and manage relays.'
 | 
				
			||||||
arch=('x86_64' 'armv6h'  'armv7h' 'aarch64')
 | 
					arch=('amd64' 'armv6h'  'armv7h' 'aarch64')
 | 
				
			||||||
url="https://git.serguzim.me/emgauwa/core"
 | 
					url="https://git.serguzim.me/emgauwa/core"
 | 
				
			||||||
license=('unknown')
 | 
					license=('unknown')
 | 
				
			||||||
groups=()
 | 
					groups=()
 | 
				
			||||||
depends=('glibc' 'sqlite')
 | 
					depends=('libsqlite3-0' 'uuid')
 | 
				
			||||||
makedepends=('make' 'cmake' 'gcc' 'vim')
 | 
					makedepends=('make' 'cmake' 'gcc' 'xxd' 'libsqlite3-dev' 'uuid-dev')
 | 
				
			||||||
conflicts=('emgauwa-core-testing')
 | 
					conflicts=('emgauwa-core-testing')
 | 
				
			||||||
backup=('etc/emgauwa/core.ini')
 | 
					backup=('/etc/emgauwa/core.ini')
 | 
				
			||||||
source=("https://git.serguzim.me/emgauwa/core/archive/v$pkgver.tar.gz"
 | 
					source=("https://git.serguzim.me/emgauwa/core/archive/v$pkgver.tar.gz"
 | 
				
			||||||
        "core.ini"
 | 
					        "core.ini"
 | 
				
			||||||
        "emgauwa-core.service"
 | 
					        "emgauwa-core.service"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										47
									
								
								core/PKGBUILD.arch
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								core/PKGBUILD.arch
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,47 @@
 | 
				
			||||||
 | 
					# Maintainer: Tobias Reisinger <tobias@msrg.cc>
 | 
				
			||||||
 | 
					pkgname=emgauwa-core
 | 
				
			||||||
 | 
					pkgver=0.3.4
 | 
				
			||||||
 | 
					pkgrel=1
 | 
				
			||||||
 | 
					epoch=
 | 
				
			||||||
 | 
					pkgdesc=""
 | 
				
			||||||
 | 
					arch=('x86_64' 'armv6h'  'armv7h' 'aarch64')
 | 
				
			||||||
 | 
					url="https://git.serguzim.me/emgauwa/core"
 | 
				
			||||||
 | 
					license=('unknown')
 | 
				
			||||||
 | 
					groups=()
 | 
				
			||||||
 | 
					depends=('glibc' 'sqlite')
 | 
				
			||||||
 | 
					makedepends=('make' 'cmake' 'gcc' 'vim')
 | 
				
			||||||
 | 
					conflicts=('emgauwa-core-testing')
 | 
				
			||||||
 | 
					backup=('etc/emgauwa/core.ini')
 | 
				
			||||||
 | 
					source=("https://git.serguzim.me/emgauwa/core/archive/v$pkgver.tar.gz"
 | 
				
			||||||
 | 
					        "core.ini"
 | 
				
			||||||
 | 
					        "emgauwa-core.service"
 | 
				
			||||||
 | 
					        "emgauwa-core.sysusers"
 | 
				
			||||||
 | 
					        "emgauwa-core.tmpfiles")
 | 
				
			||||||
 | 
					sha256sums=('6c25cb1695b3a82253735b767a4747597135c7a39adc976e02cb4a26f42183dd'
 | 
				
			||||||
 | 
					            '71d8d0f9e2dba22a256be866cb2b3128115f1a188c18b46c55a3b8718c626133'
 | 
				
			||||||
 | 
					            '559c675302f626dfded86660866554fb78f3fcbae51e5879eee65c9384a06d52'
 | 
				
			||||||
 | 
					            'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'
 | 
				
			||||||
 | 
					            '76f7d12b56efbdb06eb14ac758da2daa4ca9f2c6449a0103db6aeab22ed93cd8')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					prepare() {
 | 
				
			||||||
 | 
					    cd "core"
 | 
				
			||||||
 | 
					    mkdir -p "build"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					build() {
 | 
				
			||||||
 | 
					    cd "core/build" || exit 1
 | 
				
			||||||
 | 
					    cmake ..
 | 
				
			||||||
 | 
					    make
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package() {
 | 
				
			||||||
 | 
					    install -Dm755 "core/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"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in a new issue