diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-06-30 19:40:06 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-06-30 19:40:06 -0700 |
commit | 67e8abbe4dcb6d1736ba6e2f4b1854baf055ac55 (patch) | |
tree | ad436675c546847b948ab24041b0b9c4991db408 /pkgbuilds/xcross-git | |
parent | 47c69213d57137f195aeee3a127299fa0eb4fbdd (diff) |
maybe better way to manage cross platform not any arch pkgbuilds
Diffstat (limited to 'pkgbuilds/xcross-git')
-rw-r--r-- | pkgbuilds/xcross-git/PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgbuilds/xcross-git/PKGBUILD b/pkgbuilds/xcross-git/PKGBUILD new file mode 100644 index 0000000..bdc8752 --- /dev/null +++ b/pkgbuilds/xcross-git/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Xiao Pan <gky44px1999@gmail.com> + +pkgname=xcross-git +pkgver=r11.57ac97d +pkgrel=1 +pkgdesc='X11 draw a cross at cursor across screen ' +arch=('x86_64') +url='https://github.com/flyxyz123/xcross' +license=('GPL3') +depends=('libx11') +makedepends=('git') +provides=('xcross') +conflicts=('xcross') +source=("git+$url.git") +b2sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname%-git}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/${pkgname%-git}" + make +} + +package() +{ + cd "$srcdir/${pkgname%-git}" + make PREFIX=/usr DESTDIR="$pkgdir/" install +} |