Created
April 26, 2023 23:42
-
-
Save MasWag/996223cf8da6ffc2328b0372eec07e91 to your computer and use it in GitHub Desktop.
PKGBUILD for open-usp-tukubai
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Maintainer: Masaki Waga <[email protected]> | |
| # Contributor: Tatsunori Aoki <[email protected]> | |
| DLAGENTS='https::/usr/bin/curl --insecure -fLC - --retry 3 --retry-delay 3 -o %o %u' | |
| pkgname=open-usp-tukubai | |
| pkgver=20230322 | |
| pkgrel=1 | |
| pkgdesc="An open source version of shell commands usp Tukubai." | |
| arch=('any') | |
| url="https://uec.usp-lab.com/TUKUBAI/CGI/TUKUBAI.CGI" | |
| license=('MIT' 'custom') | |
| depends=('python') | |
| conflicts=('open-usp-tukubai-git') | |
| source=( | |
| "https://uec.usp-lab.com/TUKUBAI/DOWNLOAD/open-usp-tukubai-20230322.tar.bz2" | |
| "https://gist.githubusercontent.com/MasWag/76a89b3c3056753d1d31/raw/280803d2cca5ad788184554271494941e6adaaa8/Makefile.patch" | |
| ) | |
| md5sums=('d5e93fde3669e853e5da3f571ee9c21b' | |
| 'b5571178bc45ef76662883dd35e20439') | |
| build() { | |
| patch "$pkgname-$pkgver"/Makefile Makefile.patch | |
| cd "$pkgname-$pkgver" | |
| mv COMMANDS/tcat COMMANDS/tukubai-tcat | |
| cat Makefile | grep "^#" | sed 's/^#//' > LICENSE | |
| } | |
| package() { | |
| cd "$pkgname-$pkgver" | |
| make PREFIX="${pkgdir}" LOCALBASE="$pkgdir/usr" install | |
| mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}/" | |
| install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment