buypeeb-cs/PKGBUILD

35 lines
1.1 KiB
Bash
Raw Permalink Normal View History

2020-09-06 09:53:19 +00:00
# Maintainer: Lynnesbian <lynne@bune.city>
pkgname=buypeeb-git # '-bzr', '-git', '-hg' or '-svn'
_srcname=buypeeb-cs
2020-09-06 10:04:17 +00:00
pkgver=r89.d548d75
2020-09-06 09:53:19 +00:00
pkgrel=1
options=('!strip') # unfortunately, `strip` strips the whole program 0uo
2020-09-06 09:53:19 +00:00
pkgdesc="A simple desktop program for keeping track of Yahoo! Auctions Japan items"
arch=('x86_64')
url="https://git.bune.city/lynnesbian/buypeeb-cs"
license=('GPL3')
depends=('gcc-libs')
makedepends=('git' 'dotnet-sdk') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://git.bune.city/lynnesbian/buypeeb-cs.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${_srcname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${_srcname}"
2020-09-06 10:04:17 +00:00
dotnet publish -p:PublishProfile=Linux --output ./build/
2020-09-06 09:53:19 +00:00
}
package() {
2020-09-06 11:25:50 +00:00
cd "$srcdir/${_srcname}/res"
2020-09-06 10:59:46 +00:00
install -D -m755 ./buypeeb.desktop -t "${pkgdir}/usr/share/applications"
2020-09-06 11:25:50 +00:00
install -D -m655 ./buypeeb.png -t "${pkgdir}/usr/share/pixmaps"
2020-09-06 09:53:19 +00:00
cd "$srcdir/${_srcname}/build"
install -D -m755 ./buypeeb -t "${pkgdir}/usr/bin"
}